text stringlengths 7 5.36M |
|---|
DECLARE SUB actualday (iday%, counter!, daymis%, writelen, year%, month%, dayn%, countday%, countyr%, comonth%)
DIM station$(5), monthday%(12)
DECLARE FUNCTION leapyear% (year%) 'Returns 1 for leapyear, 0 for others
DECLARE SUB readin (station$(), a$) 'Separates first 10 fields of input
... |
Attribute VB_Name = "modCheckReconcile"
Option Compare Database
Option Explicit
Private Const THIS_NAME As String = "modCheckReconcile"
'VGC 10/09/2017: CHANGES!
' ** Array: arr_varAsset_ThisAcct().
'Private lngAssets_ThisAcct As Long, arr_varAsset_ThisAcct As Variant
Private Const A_CRACTID As Integer = 0... |
100 REM DEFINITIONS
110 REM POSITION OF HOBOKEN (meters)
111 LET K0 = 0
120 REM POSITION OF HARMON COVE (meters)
121 LET K1 = 8.0E3
130 REM ACCELERATION (meters/second^2)
131 LET A0 = 1.0
140 REM MAX VELOCITY (meters/second)
141 LET V9 = 80
200 REM ONE TRIP
201 LET X = K0
202 LET V = 0
290 PRINT "T ";"X ";"V ";"A "... |
Operation =1
Option =0
Begin InputTables
Name ="qrySchedulingSummary"
End
Begin OutputColumns
Expression ="qrySchedulingSummary.*"
Alias ="LFFinishWorkList"
Expression ="Trim(fLFFinishWorkList([ID]))"
End
dbBoolean "ReturnsRecords" ="-1"
dbInteger "ODBCTimeout" ="60"
dbByte "RecordsetType" ="0"
dbBoole... |
LIBRARY "GEMVDI"
DEFINT a-z
REM $option k300
DIM inv(10)
DIM outv(57)
IF gdos=-1 THEN
oldhand=cvhandle
REM PRINT "Got old handle"
inv (0)=1
inv (1)=1
inv (2)=1
inv (3)=1
inv (4)=1
inv (5)=1
inv (6)=1
inv (7)=1
inv (8)=1
inv (9)=1
inv (10)=0
PRINT "Set inv() variables"
REM v_opnwk inv()... |
SCREEN 12
A = 200
B = 200
C = 1
FOR X = 1 TO 14
CIRCLE (A + (2 * X), B + X), 80, C + X
NEXT
|
10 INPUT "What's your OIB:"; OIB
20 IF LEN(OIB) <> 11 THEN GOTO 10
30 LET A = 10
40 FOR I = 0 TO 10
50 A = A + VAL(MID(OIB, I, 1))
60 A = A % 10
70 IF A = 0 THEN A = 10
80 A = A * 2
90 A = A % 11
100 NEXT I
110 LET K = 11 - A
120 IF K = 10 THEN K = 0
130 IF K = VAL(MID(OIB, 10, 1)) THEN PRINT "OIB is valid!" ELSE PRINT... |
Attribute VB_Name = "RSubs"
Option Explicit
Public Sub Reg(X(), xr, xc, Y(), yr, yc, beta(), betar, betac, sec())
ReDim xt(xc, xr), xtx(xc, xc), xtxi(xc, xc), xtotal(xc, xr)
Dim xtr, xtc
Dim xtxr, xtxc
Dim xtotalr, xtotalc
Dim nv, i, j
'MATRIX RegRESSION ROUTINE
' THESE ARE MY SUB-PROGRAM TOOLS
... |
DEFDBL A-Z
DIM i(0) AS STRING * 1
DIM z(2) AS INTEGER
DIM u(4) AS STRING * 3
INPUT "Zerrdividend"; zer
test:
SCREEN 13
INPUT "Replacement (zahl von 0 bis 3)?"; r
OPEN "c:\windows\desktop\bild.bmp" FOR BINARY AS #1
GET #1, 19, z(1)
GET #1, 23, z(2)
FOR x = 1 TO 255
OUT &H3C8, x
OUT &H3C9, INT(x / 4)
... |
Attribute VB_Name = "Module1"
Sub unresourced1()
Attribute unresourced1.VB_Description = "unresourced"
Attribute unresourced1.VB_ProcData.VB_Invoke_Func = " \n14"
' unresourced1 Macro
Range("B:B,C:C,D:D,F:F").Select
Range("F1").Activate
Selection.Delete Shift:=xlToLeft
Columns("H:H").Select
Columns... |
'
' Postcharger un programme et le lancer imm‚diatement par Pexec
' OMIKRON-BASIC PEXEC.BAS
'
CLEAR 10000:' 10000 octets pour le programme … postcharger
'
Nameptr%L= MEMORY("ACHARGER.TOS")
Parametre%L= MEMORY("")
Environment%L=Parametre%L
'
GEMDOS (,2,27)' Compliqu‚ mais... |
Attribute VB_Name = "modMain"
'*************************************************
' synSpace Map Editor
' Originally created by Mosquito
'
' This program was written to aid in the
' creation of maps for Synthetic-Reality's game
' called synSpace.
' (see http://www.synthetic-reality.com)... |
' Copyright (c) 1988, 1989, 1990 Crescent Software
DEFINT I-N
DEFDBL A-H, O-Z
SUB IMATRIX (N, A()) STATIC
' Identity matrix subroutine
' Input
' N = dimension of matrix
' Output
' A() = identity matrix ( N rows by N columns )
FOR I = 1 TO N
FOR J = 1 TO N
IF I <> J ... |
Attribute VB_Name = "MOD_RegHandler"
Option Explicit
Global info
Global g
Global allcharacters
Global molestate()
Type FILETIME
lLowDateTime As Long
lHighDateTime As Long
End Type
Public Enum ValKey
Values = 0
Keys = 1
End Enum
Public Const ERRORSTRING = "Error"
Public Enum R... |
REM Benjamin Wolf
REM September 10, 2002
REM Prime2.bas
REM List primes
CLS
10 INPUT "Please define 'n' to list all primes up to the 'n'th prime, or enter '0' to end the program. ", N
IF N = 0 THEN END
IF INT(N) > N OR INT(N) < N OR N < 0 THEN
PRINT "Please enter a positive integer fo... |
color 15
print"Dark Forces Voice Name Changer (DFVNC) v1.00"
print" written by RoboCop INDUSTRIES"
color 7
PARA$=COMMAND$
IF PARA$="+4933223198 NUM2NAM" THEN GOTO NumbersToNames
IF PARA$="+4933223198 NAM2NUM" THEN GOTO NamesToNumbers
GOTO Syntax
NumbersToNames:
print"Ge... |
Attribute VB_Name = "Oracle"
' This code module rebuilt by VBRezQ v3.3a. 2-Feb-2012 / 19:56:21
Option Explicit
'Sub Subr_653()
'N * ref: __vbaExceptHandler
'N * ref: "999999.9"
'N * ref: __vbaVarDup
'N * ref: IIf(
'N * ref: __vbaVarCat
'N * ref: " "
'N * ref: __vbaVarMove
'N * ref: __vbaFreeVarList
'N * re... |
REM @english
REM OTHER CONTRIBUTIONS MEMORY SCANNER
REM
REM A RAM-scanner, written (originally) in XC=BASIC by the Italian JJ Flash,
REM and translated in ugBASIC which displays part of the contents of the RAM,
REM in PETSCII characters. With it you can run from one part of the retro computer
REM memory to ano... |
1 LPRINT "PROGRAM";CHR$(10);"BASIC"
2 LPRINT "PROGRAM";CHR$(13);"BASIC"
|
10 open15,8,15
20 open2,8,2,"#"
30 open3,10,3,"@:geolink.d64,w,s"
40 fort=1to17:fors=0to20
45 gosub500:nexts:nextt
50 fort=18to24:fors=0to18
55 gosub500:nexts:nextt
60 fort=25to30:fors=0to17
65 gosub500:nexts:nextt
70 fort=31to35:fors=0to16
75 gosub500:nexts:nextt
110 close2:close15:close3
499 rem ----transfer block---... |
' Program "DEMONLE2" December 29, 1990
'
' Copyright (c) 1989, 1990 Crescent Software
'
' This program demonstrates the procedure for calling
' subroutine NEWTON which iteratively solves for a
' real root of an unconstrained non-linear function
' using Newton's method.
'
' DEMONLE2 requires a subrouti... |
SCREEN 9
COLOR 14,9
DIM r(200),Q(100),W(50),H(50),Y(50),Lm(50),Lw(50),F(50),I1(50),Lot(10),L(10),N(10),M(10)
DIM an(50),bn(50),hn(50),d(50),S(50),W1(20),WW(9,9),G(9)
10
PRINT" ******************************************************************"
PRINT""
PRINT "
-... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
TabularFamily =0
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =10620
DatasheetFontHei... |
REM ECHO continuamos en otro.bat >> c:\temp\pp.txt
SET write_python_file=*GenData(Python_script_file)
SET problemtype_name=*Tcl(GiD_Info Project ProblemType)
DEL %2\%problemtype_name%_var.py
RENAME %2\%1-3.dat %problemtype_name%_var.py
ECHO problem_name="%1" >> %problemtype_name%_var.py
ECHO problem_path="%... |
10 REM Program to drill simple arithmetic
20 PRINT "Arithmetic drill (q to quit)"
30 LET x = RND(10) + 1
40 LET y = RND(10) + 1
50 PRINT "What is", x, "+", y, "?"
60 INPUT answer$
70 IF VALLEN(answer$) <> 0 THEN 110
80 IF answer$ = "q" THEN 250
90 PRINT "Not a number"
100 GOTO 60
110 LET a = VAL(answer$)
120 REM This... |
IF (VR(34) = 1) THEN
BASE(5)
P_GAIN = 1 '70 '60
D_GAIN = 10 ' '625 '650
BASE(4)
P_GAIN = 2 '1' 70
D_GAIN = 16 '8 '750
BASE(4,5)
ELSEIF (VR(120) = 1) THEN
BASE(4)
P_GAIN = 2 '1 '50 '65 ''70
D_GAIN= 16 '8 '805 ''700'30 ' 16 ' 12
ELSEIF (VR(121) = 1) THEN
BASE(5)
P_GAIN = 1 ... |
DECLARE SUB WordWrapThis (text$, maxwidth%, tempfile$)
OPTION BASE 1
CLS
a$ = a$ + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed"
a$ = a$ + "do eiusmod tempor incididunt ut labore et dolore magna aliqua. "
a$ = a$ + "Ut enim ad minim veniam, quis nostrud exercitation ullamco "
a$ = a$ + "laboris n... |
CLS
RANDOMIZE TIMER
FOR RUUN = 1 TO 1000
FOR A = 60 TO 90
X = INT(RND * 24) + 1
Y = INT(RND * 70) + 1
LOCATE (X), (Y): PRINT CHR$(A)
kbd$ = INKEY$
IF kbd$ = "q" OR kbd$ = "Q" THEN
GOTO AndrewBuczko
END IF
NEXT A
NEXT RUUN
AndrewBuczko:
|
Attribute VB_Name = "modAPI"
Option Explicit
'获取系统设定的双击时间
Public Declare Function GetDoubleClickTime Lib "user32" () As Long
'获取系统当前时间
Public Declare Function GetTickCount Lib "kernel32" () As Long
'获取某些系统设置的值
Public Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long
'获取鼠标坐标
Public Declare F... |
5 rem *** requires simons' basic ***
10 hires 0,1:multi 2,4,6
70 xx=10:yy=190
80 for x=10 to 11*10+10 step 10
90 read y
100 line xx,yy,x,190-y,2
105 xx=x:yy=190-y
110 next x
140 line 10,0,10,190,1
150 line 10,190,360,190,1
999 goto 999
1000 data 190,10,130,50,160,0,100,70,90,50,50,0
|
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
TabularFamily =0
PictureAlignment =2
DatasheetGridlinesBehavior =... |
SCREEN 0
SCREEN 12
_TITLE "File Maker"
DO
DO
CLS
PRINT "ex/ 'file.txt'"
PRINT "Enter the name of a file you would like to create: "; file$
DO
k$ = INKEY$
LOOP UNTIL LEN(k$)
IF k$ >= CHR$(32) AND k$ <= CHR$(126) THEN
inputlength = inputlength + ... |
100 open 2,2,0,chr$(6):rem opens file 2; 300 baud, 8 bit, no parity
101 rem open 2,2,0,chr$(38)+chr$(96) for ascii 7 bits + even parity
200 dim f%(255),t%(255)
210 for j=32 to 64:t%(j)=j:next
220 for j=65 to 90:t%(j)=j+32:next:rem lower-case
230 for j=91 to 95:t%(j)=j:next
240 for j=193 to 218:t%(j)=j-128:next:re... |
10 REM DEMONSTRATE READ, DATA, AND RESTORE
20 REM
30 REM IF YOU DO NOT KNOW HOW MANY ITEMS TO READ, YOU NEED TO HAVE
40 REM A SENTINEL VALUE AT THE END OF THE LIST WITH A VALUE THAT
50 REM ABSOLUTELY CANNOT OCCUR IN THE SET OF NORMAL VALUES YOU READ.
60 REM IN THIS CASE, -999 IS THE SENTINEL VALUE.
70 REM
80 LET C=0
90... |
Local H, S, BInf, BSup, NbDiv, i, Xval, Yval
InputFunc f(x),"f(x)=", "f"
Input BInf, "Borne Inférieure?"
Input BSup, "Borne Supérieure?"
Input NbDiv, "Nombre de Divisions?"
ClrText
(BSup-BInf)/(2*NbDiv)⇒H
0⇒S
For 1⇒i To (NbDiv)
(2*i-1)*H+BInf⇒Xval
approx(f(Xval))⇒Yval
S+Yval⇒S
Next
2*H*S⇒S
Print approx(S)
|
1 %TITLE "PR Employee Rate Dump"
%SBTTL "PR_RPRT_RATE"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1987, 1988 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
! the inc... |
DECLARE SUB box (row!, col!)
DECLARE SUB count ()
DECLARE FUNCTION money! (disks!, cost!)
'Sean Gravener - Period 3 - 2-27-98
CLS
'-1-
'Function procuduer that returns the total amount of money you have spent
'on disks in the past year...
INPUT "Enter # of disks:", disks
INPUT "Enter cost of 1 disk: $", cost
PRINT US... |
1 'Inicilizamos dispositivo: 003B, inicilizamos teclado: 003E, incializamos y preparamos el sonido:&H90'
0 defusr=&h003B:a=usr(0):defusr1=&h003E:a=usr1(0):defusr2=&H90:a=usr2(0)
1 'Enlazamos con las rutinas de la bios para aparagar y encender la pantalla'
5 defusr3=&H41:defusr4=&H44
10 bload"nbasic.bin",r
20 open "grp... |
Version =20
VersionRequired =20
Begin Form
AutoResize = NotDefault
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
TabularFamily =0
PictureAlignment =2
DatasheetGridlinesBehavior ... |
10 REM TEST SPC() FUNCTION
20 PRINT "START TEST"
30 FOR I = 1 TO 10
32 PRINT "X";SPACE$(I);"Y"
34 NEXT I
90 PRINT "END TEST"
99 END
|
Operation =1
Option =0
Where ="(((dbo_ProjectComponentHeader.MailComponentYN)=True))"
Begin InputTables
Name ="dbo_ProjectComponentHeader"
Name ="dbo_ProjectHeader"
Name ="dbo_ContactGeneral"
End
Begin OutputColumns
Expression ="dbo_ProjectComponentHeader.ID"
Expression ="dbo_ProjectComponentHeader... |
10 DIM Z$(26)
20 PRINT "TYPE IN THE CODED MESSAGE"
30 INPUT X$
40 LET L=LEN(X$)
50 FOR K=1 TO 26
60 FOR I=1 TO 26
70 IF I<K THEN LET Z$(I)=CHR$(ASC("A")
+I-K+26)
80 IF I>=K THEN LET Z$(I)=CHR$(ASC("A")+I-K)
90 NEXT J
100 FOR J=1 TO L
110 LET A$=MID$(X$,J,1)
120 IF A$=" " THEN PRINT A$;
130 IF A$=" " THEN GOTO 150
140 P... |
1 REM ** Stereoscopisch 3d-plaatje van Erik van Zijst. **
10 KEY OFF
20 SCREEN 9: WINDOW (0, 0)-(639, 349): CLS
30 FOR X = 540 TO 639
40 FOR Y = 0 TO 349
50 IF RND < .5 THEN PSET (X, Y), INT(RND * 15)
60 NEXT
70 NEXT
80 GOSUB 1000
90 FOR X = 539 TO 0 STEP -1
100 FOR Y = 0 TO 349
110 KLEUR = POINT(X, Y)
120 ... |
CLS : SCREEN 12
DIM n$(100)
COLOR 10: INPUT "Введите количество игроков - ", a
COLOR (11)
n = 1
DO
PRINT "Вводите фамилию"; n; "- го игрока - ";
INPUT "", n$(n)
n = n + 1
LOOP UNTIL n = a + 1
i = 1: j = 1
DO
IF j = 1 THEN COLOR 12: PRINT "Игрок номер"; i; ": "; : COLOR 11: PRINT n$(i)
IF i = j THEN f(i, ... |
#PBFORMS CREATED V2.01
'------------------------------------------------------------------------------
' The first line in this file is a PB/Forms metastatement.
' It should ALWAYS be the first line of the file. Other
' PB/Forms metastatements are placed at the beginning and
' end of "Named Blocks" of code that should ... |
============================================================================
To: All Number: 9051 Refer: 0
From: James McMurrin Conference: Quik_Bas (3)
Date: 08-28-96 19:48 BBS Name: The Programmer's Mark BBS
Subject: Forest ... |
'(
Файл содержит текстовые описания ошибок , хранимые в еппром
0 - без ошибки
Const Cpnoerror = 0 'Нет ошибки
1...100 включительно - ошибки Avr -dos
')
'ошибки файловой системы
'(
Const Cpendoffile = 1 'Попытка чтения файла за п... |
DECLARE SUB queueSound (offset%, note%)
DECLARE SUB playSounds ()
DECLARE SUB initLookUps ()
DECLARE SUB initTimer ()
'$INCLUDE: 'libelf.bi'
TYPE soundType
queue(0 TO 63) AS INTEGER
readPos AS INTEGER
speakerOn AS INTEGER
speakerOff AS INTEGER
track(0 TO 255) AS INTEGER
END TYPE
DIM SHARED sounds AS soundType
C... |
CONST TRUE = -1
CONST FALSE = 0
TYPE Gradient
Spectrum AS _MEM
END TYPE
DIM SHARED NumberOfRays AS _UNSIGNED INTEGER
DIM SHARED RayAngleWidth AS _FLOAT
DIM SHARED Degree AS _FLOAT
DIM SHARED AspectRatio AS DOUBLE
DIM SHARED Logo AS LONG
DIM SHARED Gradients(0) AS Gradient
_TITLE "The Joyful Programmer's Spinnin... |
10 C$=CHR$(27)+"[2J" \ REM DISPLAY_CLEAR
11 DEF FNC$(X,Y)=CHR$(27)+"["+STR$(Y)+";"+STR$(X)+"H" \ REM MOVE_CURSOR(Y,X)
12 REM ----------------------------------------------------------------------
13 REM *** THIS GAME OF MASTERMIND WRITTEN BY BOB PRESTWOOD OF THE T.A.C. ***
14 REM -----------------------------------... |
100 REM STEPS
110 DIM X(7)
120 LET C=6
130 FOR A=2 TO 7
140 LET X(A)=C+2-A
150 NEXT A
160 LET X(1)=0
170 LET ZZ=-1
180 GOSUB 1100
190 LET Y=14:LET X=0:GOSUB 1700:PRINT"press s for solution"
200 GOSUB 380
210 LET Y=12:LET X=0:GOSUB 1700:PRINT"press keys 1 to 6"
220 LET X=0:LET Y=10:GOSUB 1700:PRINT "************"
230 GO... |
10 DEFINT A-Z: PG=0: CLS: KEY OFF: LOCATE ,,0: SCREEN 2: READ N
20 DIM D$(2,43): FOR I=0 TO N-1: READ D$(0,I)
30 PAT$="": FOR J=0 TO 7: READ CH: PAT$=PAT$+CHR$(CH): NEXT J: D$(1,I)=PAT$
40 NEXT I
50 WHILE PG>=0: CLS: FOR CL=0 TO 3: FOR R=0 TO 3
60 IDX=PG*16+CL*4+R: IF IDX>=N THEN GOTO 90
70 LOCATE CL*6+1,R*20+1: ... |
' Rudolf LDR/Switch Program
' For PICAXE-08M
' LDR on pin 1
' Push switch on pin 3 (NB active low)
' LEDs on pins 0 (nose) and 4 (eyes)
' Piezo sounder on pin 2
' ***** main loop *****
' wait until switch pushed
main:
if pin3 = 0 then playit
goto main
' ***** play tune *****
'wait until switch is released
playi... |
1 %TITLE "Maintain Skills Table"
%SBTTL "PR_MAIN_SKILLS"
%IDENT "V3.6a Calico"
FUNCTION LONG PR_MAIN_SKILLS(CDD_WINDOW_CDD SMG_WINDOW, LONG MOPTION, &
LONG MLOOP, LONG MFLAG, STRING MVALUE)
!
! COPYRIGHT (C) 1996 BY
!
! Software Solutions, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a ... |
10 REM 'DATA' TEST PROGRAM
20 DATA 20,-10,.5
30 READ A,B,C
40 D=A+B+C
50 PRINT "D= ";D
60 PRINT "DATA PASSED THE TEST IF D = 10.5"
99 END
|
10 POKE 53272,PEEK(53272)OR8:POKE 53265,PEEK(53265)OR32
20 FORI=8192TO16191 STEP 8
30 POKEI,240:POKEI+1,240:POKEI+2,240:POKEI+3,240
40 POKEI+4,15:POKEI+5,15:POKEI+6,15:POKEI+7,15
50 NEXT
60 FORI=1024TO2034:POKEI,251:NEXT
70 GOTO 70
|
5 EXEC
10 PRINTPEEK(&H7000);PEEK(&H7001);PEEK(&H7002);PEEK(&H7003)
20 GOTO 5
|
CHDIR ".\programs\samples\thebob\pongg"
'****************************************************************************
'---------------------------- P O N G G ! - 2.0 -----------------------------
'---------------------- Freeware by Bob Seguin - 2007 -----------------------
'********************************************... |
REM @english
REM SCREEN MANIPULATION CHANGING RESOLUTION (2)
REM
REM This example shows how to use the various ''BITMAP'' and ''TILEMAP''
REM resolutions. After each command, the screen will be configured at the
REM best allowed. If a given parameter is omitted, this means that we have
REM no particular interest ... |
5 rem *** requires simons' basic ***
10 hires 0,1:multi 2,4,6
20 dim y(12)
30 xs=10:ys=1/60
40 for n=1 to 12
50 read y(n)
60 next n
80 xx=10+xs:yy=190-(ys*y(1))
90 for x=1 to 12
100 line xx,yy,10+x*xs,190-(y(x)*ys),rnd(1)*3+1
105 xx=10+x*xs:yy=190-(y(x)*ys)
110 next x
140 line 10,0,10,190,1
150 line 10,190,360,190,1
99... |
DECLARE SUB DRAWLEVEL ()
DECLARE SUB NOENEMY ()
DECLARE SUB E1 ()
DECLARE SUB E2 ()
DECLARE SUB VICTORY ()
DECLARE SUB PASSWORD ()
COMMON SHARED LOWGAM, B$, A$, LEND(), POWER, LIFE, FLYSTEP, SCENE, ENEMY, X, Y, A, B, EXPOT, ENEMY1(), ENEMY2(), ENEMY(), PLANE(), SPRITE1(), SPRITE2()
COMMON... |
'this program would show the graph of "y=x^(1/x)"
CLS
DIM x AS DOUBLE
DIM y AS DOUBLE
DIM yprime AS DOUBLE
DIM ydoubleprime AS DOUBLE
DIM preydoubleprime AS DOUBLE
DIM preyprime AS DOUBLE
CONST linelimit = 1000
CONST TRUE = -1
CONST false = 0
CONST MAXLEFT = 0
CONST maxup = 2
CONST maxright =... |
10 REM CHECKERS
20 REM BY ROBERT RIPBERGER
30 REM 142 ATHERTON DR.
40 REM METAIRIE, LA 70005
50 PRINT TAB(32);"CHECKERS"
60 PRINT TAB(25);"BY ROBERT RIPBERGER"
70 PRINT :PRINT :PRINT
80 DIM R(4), S(7,7):G=-1:R(0)=-99:E2$=" "
90 ES$=CHR$(27):RV$=ES$+"p":ER$=ES$+"q":GR$=ES$+"F":EG$=ES$+"G"
100 L$=" baaabaaabaa... |
Attribute VB_Name = "Picture"
Option Explicit
Public Enum CBoolean ' enum members are Long data types
CFalse = 0
CTrue = 1
End Enum
Public Const S_OK = 0 ' indicates successful HRESULT
'WINOLEAPI CreateStreamOnHGlobal(
' HGLOBAL hGlobal, // Memory handle for the stream object
' BOOL fDeleteOnRelease, // Whether to fr... |
100 REM XMAS
110 GOSUB 1100:LET H=0
120 PRINT "{space*7}xmas"
130 LET T=2:GOSUB 1400
140 LET H=0:FOR S=1 TO 10:GOSUB 2800
150 LET X=2:LET Y=14:GOSUB 1700:PRINT "****************";
160 LET N=10:GOSUB 1300:LET R=R+4
170 LET X=R:FOR Y=12 TO 14:GOSUB 1700:PRINT "*{space*2}*";:NEXT Y
180 LET A=0:LET B=1:LET P=0
190 LET T=.2... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
TabularFamily =124
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =2940
DatasheetFontHe... |
10 PRINT TAB(34);"STARS"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
30 PRINT:PRINT:PRINT
100 REM *** STARS - PEOPLE'S COMPUTER CENTER, MENLO PARK, CA
140 REM *** A IS LIMIT ON NUMBER, M IS NUMBER OF GUESSES
150 A=100:M=7
170 INPUT "DO YOU WANT INSTRUCTIONS";A$
190 IF LEFT$(A$,1)="N" THEN 280
200 REM ... |
1 %TITLE "Payroll Tax Register Report"
%SBTTL "PR_RPRT_QTR_REGISTER"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1999 BY
!
! Software Solutions, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
! the inc... |
SUB MAIN
IF (IsPressureAvailable()) THEN
WHILE (TRUE)
PRINT getPressure()
SLEEP 1000
END WHILE
ELSE
PRINT "Pressure Sensor is not available on this device"
END IF
END SUB |
100 REM PRINTMAR Program.
110 REM Prints Detailed Marriage Information
120 REM Copyright (c) 1982 ... 1989 by: Melvin O. Duke.
130 OPTION BASE 0
140 DEFINT A-Z
600 REM Titles
610 TITLE$ = "Print the Marriages File"
620 TITLE$ = TITLE$ + " ON DISPLAY"
700 REM Terminate if not called from the Me... |
CLS
PALETTE 0, 9
COLOR 0, 3
PRINT " PROFESSOR Cˆ Dˆ eFe"
PRINT
PRINT
PRINT
PRINT " Este programa foi elaborado especialmente para vocˆ aprender algumas"
PRINT " no‡”es b sicas sobre o computador, o que ele pode fazer e alguns comandos"
PRINT " do MS-DOS."
5 PRINT " Aperte a tecla C se quiser Contin... |
1 COMMON A, AL, B, BASEONLY, C, C$, C1, CAT$, CC, CKT$, D, D$, DD, DIA, DIMN$, DMS, E, EO, EX$, F, F$, FD, FF, FQ, FRQ, G$, GO$, I, I$, L, LATLONG, LD, LL, LN, LS, LW, LX, MAX, MENU, MIN, MX, N, NN, NT, OV, P, PI, PROG$, Q, QQ, QU, R, RA, RC, T, T$, U, U$, UH, UL$, V$, VC, W, WHIP, WIRD, WW, X, X$, X1, XS, Z$, ZP, ZS
5... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-745558761
Begin Report
LayoutForPrint = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
AllowDesignChanges = NotDefault
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
... |
1 COMMON A, AL, B, BASEONLY, C, C$, C1, CAT$, CC, CKT$, D, D$, DD, DIA, DIMN$, DMS, E, EO, EX$, F, F$, FD, FF, FQ, FRQ, G$, GO$, I, I$, L, LATLONG, LD, LL, LN, LS, LW, LX, MAX, MENU, MIN, MX, N, NN, NT, OV, P, PI, PROG$, Q, QQ, QU, R, RA, RC, T, T$, U, U$, UH, UL$, V$, VC, W, WHIP, WIRD, WW, X, X$, X1, XS, Z$, ZP, ZS
1... |
\/******************************************************************/
\/* */
\/* DHF File Functions */
\/* */
\/* REFERENCE : DHFFUN.BAS ... |
'simple text calendar example
'courtesy Jay Shrimplin
aDate$= date$("mm/dd/yyyy")
'aDate$="02/19/2003"
locate int((28-len(monthname$(aDate$)))/2),y
print monthname$(aDate$)+" "+right$(aDate$,4)
1 FirstDay=date$(word$(aDate$,1,"/")+"/1/"+word$(aDate$,3,"/"))
2 LastDay$=date$(date$(word$(date$(Fi... |
CLS
OPEN "bus.in" FOR INPUT AS #1
OPEN "bus.out" FOR OUTPUT AS #2
INPUT #1, n
DIM s(n)
FOR i = 1 TO n
INPUT #1, s(i)
NEXT i
INPUT #1, a, b
sum = a
FOR i = 1 TO n
sum = sum + s(i)
NEXT i
PRINT #2, LTRIM$(STR$(sum - b))
CLOSE #1
CLOSE #2
END
|
!--------------------------------------------------
!- Monday, October 01, 2018 10:29:24 PM
!- Import of :
!- c:\tmp\cbmterm.prg
!- Unexpanded VIC20 / C16 / Plus4
!--------------------------------------------------
1 REM CBMTERM64/128 1200B 1.8+
2 REM UPDATED 08/15/2017 12:54A
10 SY=PEEK(65532):IFSY=61THENPOKE58,254:... |
10 DIM L$(16)
20 CLS
30 COLOR 15
40 PRINT"Welche Datei soll angezeigt werden [FONT.DAT] ?"
50 PRINT"Bsp: 12345678.EXT"
60 INPUT ">",DAT$
70 IF DAT$="" THEN DAT$="FONT.DAT"
80 OPEN "I",#1,DAT$
90 PRINT"Datei ge”ffnet."
100 SH$="D:\DOS\UTIL\FONTS\LOADFONT <"+DAT$
110 SHELL SH$
120 LINE INPUT #1,NO$
130 PRINT ... |
10 PRINT "INPUT THE NUMBER OF SPACES DESIRED TO THE LEFT OF ZERO";
20 INPUT M
30 PRINT
40 PRINT " ";
50 FOR X=0 TO 50 STEP 10
60 PRINT " ";X;
70 NEXT X
80 PRINT
90 FOR X=1 TO 70
100 IF X/10=INT(X/10) THEN 130
110 PRINT "-";
120 GOTO 140
130 PRINT "^";
140 NEXT X
150 DEF FNQ(X)=X^2
160 FOR X=-7 TO 7
170 PRINT
180 ... |
CLS
SCREEN 12
WINDOW SCREEN(1,1)-(1024,768)
LINE(100,100)-(180,180),8,BF
LINE(100,100)-(180,180),15,B
LINE(300,150)-(450,250),8,BF
LINE(300,150)-(450,250),15,B
LINE(200,300)-(300,390),8,BF
LINE(200,300)-(300,390),15,B
LET PL$="S4 H5 G5 F5 E5 H5 E3 L5 F3 G5 F5 F3 L5 E3 E5 H5... |
1 %TITLE "Initilize to Use a Form"
%SBTTL "OUTP_FORMINIT"
%IDENT "V3.6a Calico"
FUNCTION LONG OUTP_FORMINIT(FORM_LIB$, FORM_NAME$, FORM_TEXT$, &
FORM_GROUP%, FORM_GROUP_CDD FORM_GROUP())
!
! COPYRIGHT (C) 1996 BY
! Software Solutions, Inc.
!
! This software is furnished under a license and may be used and
!... |
' Hallo, du interessierter RPG-Spieler !
' Ich finde es ganz toll, das du dir dieses geniale Spiel von
' Meiner Seite runtergeladen hast. Leider muá ich dir an dieser
' Stelle eine traurige Mitteilung machen :
' Das Spiel ist noch gar nicht fertig !
' Schade, was? Naja, man kann es ja schon spielen, aber es ist ... |
5 REM Taken from Usborne's 1982 book
6 REM "Computer Battlegames"
10 CLS
20 PRINT "VITAL MESSAGE"
30 PRINT
40 PRINT "HOW DIFFICULT? (4-10)"
50 INPUT D
60 IF D<4 OR D>10 THEN GOTO 40
70 LET M$=""
80 FOR I=1 TO D
90 LET M$=M$+CHR$(INT(RND(1)*26)+65)
100 NEXT I
110 CLS
120 PRINT "SEND THIS MESSAGE:"
130 PRINT
140 ... |
'SCREEN 13
CLS
s$ = ""
a = 0
FOR a = 0 TO 255
IF a <> 9 AND a <> 10 AND a <> 11 AND a <> 12 AND a <> 13 AND a <> 0 AND a <> 7 AND a <> 29 AND a <> 30 AND a <> 31 THEN
s$ = s$ + CHR$(a)
ELSE
s$ = s$ + "X"
END IF
NEXT a
PRINT s$
|
REM File: .bas
REM Data:
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
5 CLS
10 PRINT "Сколько будет два плюс два "
20 INPUT a
30 IF a = 4 THEN 60
40 PRINT "ты ошибся"
50 GOTO 10
60 PRINT "ты угадал"
70 END
|
1 %TITLE "Deal File List"
%SBTTL "PC_RPRT_DEAL"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 2001 BY
!
! Software Solutions, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
! the inclusion of the above c... |
'$include:'peekpoke.bi'
DECLARE CUSTOMTYPE LIBRARY
SUB memcpy (BYVAL dest~%&, BYVAL src~%&, BYVAL count~%&)
END DECLARE
SCREEN 12
SCREEN _NEWIMAGE(640, 720)
DO
word$ = ""
DO
CLS
PRINT "Enter a word: " + word$
DO
_LIMIT 64
k$ = INKEY$
LOOP UNTIL LEN(... |
REM PROGRAM: FORM2.BAS
REM DIPPR801 Dataform Program
REM Designed by Andrew W. Loll
REM QBASIC Version 1.00
REM This routine changes the data files from the DIPPR801 format to give a
REM list of the extracted compound
CLS
OPEN "c:\fit\ext95.dat" FOR INPUT AS #1
OPEN "c:\fit\vplist95.dat" FOR OUTPUT AS #2
count = 0... |
'_|_|_| SANDR.BAS
'_|_|_| A simple search and replace for QBasic strings.
'_|_|_| No warrantee or guarantee is given or implied.
'_|_|_| Released PUBLIC DOMAIN by Kurt Kuzba. (12/24/96)
DECLARE SUB SandR (text$, OldT$, NewT$)
PRINT CHR$(13); "Begin Search and Replace test."
text$ = "Ellie's groovy bo... |
DECLARE SUB STORIES ()
DECLARE SUB CHOOSE ()
DECLARE SUB STORY2 ()
DECLARE SUB STORY3 ()
DECLARE SUB QUIZ ()
CLS
SCREEN 9
COLOR 3
SOUND 100, 30
SOUND 200, 30
SOUND 300, 30
PRINT
PRINT
PRINT TAB(30); "ERIC'S FUN CENTER!"
PRINT
COLOR 2
PRINT TAB(10); "FEATURING: SILLY STORIES, FUN GAMES AND MUCH, MUCH MOR... |
'
' *** COM2_EX.BAS - Programma esempio per l'istruzione COMMON
'
DIM X(1 TO 50)
COMMON X(), N
PRINT
PRINT "Esecuzione del file COM2_EX.BAS, raggiunto via un comando CHAIN..."
IF N > 0 THEN
Somma = 0
FOR I = 1 TO N
Somma = Somma + X(I)
NEXT I
PRINT "La media dei valori Š"; Somma / N
END... |
14 GRAPHICS 8+16 : R. The +16 eliminates text window.
15 COLOR 1 : R. And set the pixel drawing color.
32 SETCOLOR 4,0,0: R. Border black.
33 SETCOLOR 2,0,15: R. Background white
37 SETCOLOR 1,0,0 : R. Drawn pixels black
82 X=79:Y=49:DX=INT(RND(0)*3-1):DY=INT(RND(0)*3-1): IF DX=0 AND DY=0 THEN GOTO 82
95 PL. X,Y:PL. 3... |
10 REM TEST AND OPERATOR
20 LET A% = 20%
30 LET B% = 30%
40 IF A% AND B% THEN 80
50 PRINT "FAIL"
60 GOTO 90
80 PRINT "SUCCESS"
90 END
|
dbMemo "SQL" ="SELECT l.Unit_Code, Year(e.Start_Date) AS Visit_Year, l.Plot_ID AS Route, LEFT(l"
".Plot_ID, 48) AS RouteTruncated, MIN(l.Area) AS Area, COUNT(t.Transect) AS Trans"
"ectCount\015\012FROM (Transect AS t LEFT JOIN tbl_Events AS e ON e.Event_ID = t."
"Event_ID) LEFT JOIN tbl_Locations AS l ON l... |
1 COMMON A, AL, B, BASEONLY, C, C$, C1, CAT$, CC, CKT$, D, D$, DD, DIA, DIMN$, DMS, E, EO, EX$, F, F$, FD, FF, FQ, FRQ, G$, GO$, I, I$, L, LATLONG, LD, LL, LN, LS, LW, LX, MAX, MENU, MIN, MX, N, NN, NT, OV, P, PI, PROG$, Q, QQ, QU, R, RA, RC, T, T$, U, U$, UH, UL$, V$, VC, W, WHIP, WIRD, WW, X, X$, X1, XS, Z$, ZP, ZS
5... |
10 REM *** Kaiser Window Program Module ***
20 REM
30 REM This program module will generate the necessary FIR coefficients
40 REM using the Kaiser window sequence. The user can then define the
50 REM output path to either the screen, printer, or an external file
60 REM which can be merged... |
Version =20
VersionRequired =20
PublishOption =1
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridY =10
Width =15847
DatasheetFontHeight =11
ItemSuffix =28
Right =11850
Bottom =7170
DatasheetG... |
FUNCTION GetDay$ (mm, dd, yyyy) 'use 4 digit year
'From Zeller's congruence: https://en.wikipedia.org/wiki/Zeller%27s_congruence
IF mm < 3 THEN mm = mm + 12: yyyy = yyyy - 1
century = yyyy MOD 100
zerocentury = yyyy \ 100
result = (dd + INT(13 * (mm + 1) / 5) + century + INT(century / 4) + INT(zeroc... |
10 'Чтение диапазона строк
20 OPEN "Симпсон" FOR INPUT AS#1
30 LINE INPUT #1,R$
40 X$=MID$(R$,1,2)
50 IF X$<"30" OR X$>"70" THEN 80
60 PRINT R$
80 IF NOT EOF(1) THEN 30
90 CLOSE #1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.