text
stringlengths
7
5.36M
CLS INPUT "code = ", code INPUT "Name =", name$ READ year DATA 1 INPUT "Mid =", mid INPUT "Final =", final INPUT "Affective =", affective total = mid + final + affective PRINT "code =", code PRINT "Name =", name$ PRINT "Y...
10 print:print:input"number of items";aa:if aa<2 then 10 15 dim a(aa) 20 print:print"unsorted table":print 30 for z=1 to aa 40 a(z)=int(rnd(1)*100)+1 50 print a(z), 60 next z 70 print:print:print"press s for sort" 80 get k$:if k$<>"s" then 80 90 ti$="000000":gosub 1000:print:print"time:";ti/60;"seconds" 100 print:prin...
10 REM Male zuf„llige Punkte 20 USING$:CLS:PRINT CHR$ 27,'fAbbruch mit ESC' 30 WHILE 40 PLOT RAND 256,RAND 176 50 WEND INKEY$=CHR$(27) 60 CLS:PRINT CHR$ 27,'e'
@ERASE 0 REM DUN - SPP example 0 REM this example will show you how to work with both 0 REM SPP to DUN profile 0 REM $1 state 0 REM $1[0] = 48 SPP 0 REM $1[0] = 49 DUN 1 0 0 REM this code fits the SMD, change the PIO if you want @INIT 19 19 Z = 1 0 REM set uart 20 A = baud 1152 21 J = 20 0 REM LED 22 A = pioout J ...
Version =20 VersionRequired =20 Begin Form AllowEditing = NotDefault PopUp = NotDefault Modal = NotDefault RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault ShortcutMenu = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault AllowDeletions =...
5 randomize 10 for y=1 to 10 20 for x=1 to 12 25 Tile=getRandom 26 select case Tile 27 case Tile=0 to 59 28 color 2 : print "G"; 29 case Tile=60 to 84 30 color 10 : print "S"; 31 case Tile=85 to 93 32 color 6 : print "W"; 33 case Tile=94 to 100 34 ...
1 PRINT TAB(33);"DIAMOND" 2 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 3 PRINT:PRINT:PRINT 4 PRINT "FOR A PRETTY DIAMOND PATTERN," 5 INPUT "TYPE IN AN ODD NUMBER BETWEEN 5 AND 21";R:PRINT 6 Q=INT(60/R):A$="CC" 8 FOR L=1 TO Q 10 X=1:Y=R:Z=2 20 FOR N=X TO Y STEP Z 25 PRINT TAB((R-N)/2); 28 FOR M...
10 LET X = 1 20 LET Y = 9 30 LET Z = 0 35 LET Z = Z + 1 40 PRINT Z 50 IF Z < Y GOTO 35 51 LET I = 100000 53 PRINT I 55 LET Y = 0 60 LET Z = Z - 1 70 PRINT Z 80 IF Z > Y GOTO 60 90 GOTO 110 100 PRINT Z 105 PRINT Z 110 LET A = 500 115 PRINT A 120 LET B = A / 2 122 PRINT B 125 LET B = B * 3 127 PRINT B 130 LET C = 25 160 ...
' Program "DEMOLNT2" January 27, 1991 ' ' Copyright (c) 1991 Crescent Software ' ' This program demonstrates the procedure for calling ' the subroutines INTERP2 which performs a linear ' interpolation of tabular data of the form z = f(x,y) ' input by the user. ' ' NOTE: the data must be ordered as fol...
10 poke 53280,6: poke 53281,7 20 print chr$(144);chr$(147) 30 for x=1 to 20 40 print x, x*2, x*x 50 next x
menu0: CALL topbar IF player = 2 AND side = 0 THEN side = 1 IF cash(side) < 100 AND navyloc(side) = 0 THEN nflag = 1 hilite = 11 colour = 4 tlx = 67: tly = 13 mtx$(0) = "Main" mtx$(1) = "Troops": IF rflag < 0 OR cash(side) < 100 THEN mtx$(1) = "-": chosit = 23 mtx$(2) = "Moves": IF mflag > 0 THEN mtx$(2) = "-": IF cho...
\****************************************************************************** \****************************************************************************** \*** \*** $Workfile: PSS3703.bas $ \*** \*** $Revision: 1.6 $ \*** \****************************************************************************** \**...
'Is an example of fuzzy logic CLS INPUT "Target temperature? ", targettemp INPUT "Current room temperature? ", room PRINT "Season? " PRINT PRINT " (1) Summer" PRINT " (2) Fall" PRINT " (3) Winter" PRINT " (4) Spring" LOCATE 3, 9 INPUT "", season CLS PRINT "When you would like to quit, press esc." PRINT PRINT ...
1 REM cylon demo program using RC2014 digital IO board 2 REM buttons may be pressed to alter speed 5 DL=150 6 DN=150 10 FOR F=0 TO 7 20 OUT 0,2^F 30 GOSUB 1000 40 NEXT F 50 FOR F=7 TO 0 STEP -1 60 OUT 0,2^F 70 GOSUB 1000 80 NEXT F 90 GOTO 10 1000 X=0 1010 BU=INP(0) 1020 IF BU <> 0 THEN DN = BU*5 1030 IF DN <> DL THEN...
10 c=7680 15 d=7000 20 poke 829,int(c/256) 25 poke 828,c-(int(c/256)*256) 40 poke 831,int(d/256) 45 poke 830,d-(int(d/256)*256) 50 print"{clr}++++++++[>+++++++++<-]>.+.*" 60 print 65 print "sys (location of bf)"
10 SCREEN 2 20 LINE (10,10)-(131,111),15,BF 30 CIRCLE (71,61),25,8 40 PAINT (71,61),8 45 GOTO 45 
Attribute VB_Name = "mdNavegação" Sub EfeitoMenuTopo() Attribute EfeitoMenuTopo.VB_ProcData.VB_Invoke_Func = " \n14" Dim sMenuTopo As String sMenuTopo = ActiveSheet.Shapes(Application.Caller).Name 'cor padrao ActiveSheet.Shapes.Range(Array("MenuTopo")).Fill.ForeColor.RGB = RGB(217, 217, 217) ActiveShe...
Version =20 VersionRequired =20 Begin Form AutoCenter = NotDefault DividingLines = NotDefault FilterOn = NotDefault AllowEdits = NotDefault DataEntry = NotDefault ScrollBars =2 PictureAlignment =5 PictureSizeMode =1 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width...
10 rem *** Simple grid scroll *** 20 rem *** My first BASIC program in 30 years *** 30 rem *** Feb 2020 *** 100 REM *** Variables *** 110 REM None as of yet, might add some variables later 200 REM *** Some prep work *** 210 REM Found some code online to copy the charset from ROM into RAM 220 REM So far it se...
' ' test single line IF ' OPTION EXPLICIT DIM s AS INTEGER = 0 FOR i AS INTEGER = 1 TO 10 s = s + i IF i>5 THEN EXIT FOR ELSE s = s + 1 NEXT i ASSERT s=26
Version =20 VersionRequired =20 Begin Form PopUp = NotDefault RecordSelectors = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault DefaultView =0 ScrollBars =0 TabularFamily =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width ...
100 REM === BASIC Month 3: Cannonball 110 REM === http://reddit.com/r/RetroBattlestations 120 REM === written by FozzTexx 130 REM === TRS-80 Extended Color Basic version by CheapScotch 200 REM === Clear screen and setup variables 210 CLS 220 CL = 32:RW = 16:REM Columns and Rows of screen 230 CA = 45:CN = 5:REM...
B4J=true Group=Default Group ModulesStructureVersion=1 Type=Class Version=4.2 @EndOfDesignText@ Sub Class_Globals Dim App As AWTRIX Dim iconId As Int = 923 Dim AQIValue As String ="0" Dim dominentpol As String = "NULL" Dim scroll As Int = 1 End Sub ' ignore Public Sub Initialize() As String App.Initialize(Me,...
10 REM TEST PROGRAM WITH NESTED 'NEXT' STATEMENTS 20 FOR A=1 TO 3 30 FOR B=1 TO 3 40 PRINT A;B, 50 NEXT B 60 NEXT A 70 PRINT "THE 'NEXT' STATEMENT PASSED THE TEST WHEN NESTED" 99 END
1 %TITLE "Read Certificate of Minimum Wage File" %SBTTL "PR_READ_CERTRATE" %IDENT "V3.6a Calico" FUNCTION REAL PR_READ_CERTRATE(STRING EFF_DATE) ! ! COPYRIGHT (C) 1987 BY ! Computer Management Center ! Idaho Falls, Idaho ! ! This software is furnished under a license and may be used and ! copied only in acc...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault DefaultView =0 ScrollBars =0 Width =7056 ItemSuffix =30 Left =2265 Top =3195 Right =9075 Bottom =7830 RecSrcDt = Begin 0x...
Attribute VB_Name = "MainModule" 'SSTEMP-MC for Windows with Monte Carlo Driver, by John Bartholow 'Version 2.0 7/02- Added full uncertainty routine and ability to process ' external file of variables 'Version 1.6.0 6/02- Added Uncertainty graph; corrected array limits 'Version 1.5.1 6/0...
10 ' 20 ' This is a small HIRES demo 30 ' 35 PRINT"REDEFINING THE CHARACTERS:" 36 PRINT"@ABCDEFGHIJKLMNOPQRSTUVWXYZ" 40 A=#B400+64*8 50 FOR I=1 TO 27 60 FOR V=1 TO 8 70 READ C 80 POKE A,C 90 A=A+1 100 NEXT V 110 NEXT I 120 PRINT"CHARACTERS ARE NOW REDEFINED" 130 END
DECLARE SUB formsol () DECLARE SUB Prisma () DECLARE SUB Parallelepipedi () DECLARE SUB PIRAMIDE () DECLARE SUB Troncopi () DECLARE SUB Cilindro () DECLARE SUB Cono () DECLARE SUB Troncoco () DECLARE SUB Sfera () ' Runprogram CLS formsol END SUB Cilindro 'sfondo COLOR 15, 3: CLS FOR a = 1 TO 80 LOCATE 3, a: ...
DECLARE FUNCTION FUNC! (X!) SUB SCRSHO (DUM) ISCR = 60 JSCR = 21 DIM Y(ISCR), SCR$(ISCR, JSCR) BLANK$ = " " ZERO$ = "-" YY$ = "l" XX$ = "-" FF$ = "x" DO PRINT " Enter X1,X2 (= to stop)" INPUT X1, X2 IF X1 = X2 THEN ERASE SCR$, Y: EXIT SUB FOR J = 1 TO JSCR SCR$(1, J) = YY$ SCR$(ISCR, J...
1 'THIS PROGRAM CREATES MAILING LABELS USING R/S LABELS 26-132 3 '*NOTE* THERE IS A PCLEAR 1 IN LINE 5 (YOU MAY GET SN ERROR WHEN YOU RUN THE PROGRAM AFTER LOADING) [ONLY WITH 1.0 ECB ROM], ALSO IF YOU WISH TO PUT DATA ON DRIVE0 MODIFY LINE 5 4 '*NOTE* ALSO THE LIST ROUTINE USES THE HIGH SPEED POKE, IF ...
10 CLS 20 PRINT "Hello, world!" 30 PRINT "I'm learning about commands in BASIC." 40 PRINT "This text is being printed via the PRINT command." 50 PRINT "On the next line, I'll use CLS." 60 CLS 65 PRINT "Now the next word would be PRINT." 70 PRINT "Finally, on line 80, I'll use END." 80 END 90 PRINT "Now my program is...
5 PRINT TAB(33);"BATTLE" 7 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 10 REM -- BATTLE WRITTEN BY RAY WESTERGARD 10/70 20 REM COPYRIGHT 1971 BY THE REGENTS OF THE UNIV. OF CALIF. 30 REM PRODUCED AT THE LAWRENCE HALL OF SCIENCE, BERKELEY 40 DIM F(6,6),H(6,6),A(4),B(4),C(6),L(3) 50 FOR X=1 TO 6 51...
flg = 1 /* 初始化标志变量,默认这个数字是素数 */ FOR i=2 TO n-1 /* 从2到n-1,因为1和n没有必要检测 */ IF n mod i = 0 THEN /* 能够被其中一个i整除 */ flg = 0 /* 那么n不是素数(有其他约数) */ EXIT FOR /* 退出循环(能够确定不是素数)*/ END IF NEXT i
CLS OPEN "ways.in" FOR INPUT AS #1 OPEN "ways.out" FOR OUTPUT AS #2 INPUT #1, m, n, o ans = m + n + o PRINT #2, LTRIM$(STR$(ans)) CLOSE #1, #2 END
SCREEN 12 a = 1 FOR j = 1 TO 10 FOR i = 1 TO 360 STEP 7 PSET (320, 240) DRAW "c" + STR$(a) + "bu" + STR$(r) + "r1" + "ta" + STR$(i) a = a + 1 IF a = 10 THEN a = 1 NEXT i r = r + 4 NEXT j
OPTION EXPLICIT OPTION DEFAULT NONE OPTION BASE 0 OPTION CONSOLE BOTH #INCLUDE "../INC/Frame.inc" #INCLUDE "../INC/Sprite.inc" #INCLUDE "../INC/EventTypes.inc" #INCLUDE "../INC/Event.inc" #INCLUDE "../INC/EventStep.inc" #INCLUDE "../INC/Object_types.inc" #INCLUDE "../INC/Box.inc" #INCLUDE "../INC/Animation...
1 %TITLE "Asset Balance Register" %SBTTL "AD_MAIN_BALANCE" %IDENT "V3.6a Calico" FUNCTION LONG AD_MAIN_BALANCE(CDD_WINDOW_CDD SMG_WINDOW, LONG MOPTION, & LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1987 BY ! ! Computer Management Center ! Idaho Falls, Idaho. ! ! This software is furnished und...
REM $INCLUDE: 'x86.bi' '*** ' QB.BI - Assembly Support Include File ' ' Copyright <C> 1987 Microsoft Corporation ' ' Purpose: ' This include file defines the types and gives the DECLARE ' statements for the assembly language routines ABSOLUTE, ' INTERRUPT, INTERRUPTX, INT86OLD, and INT86...
rem rem ---------------- Variables rem rem rem rem rem dim ii = temp1 dim jj = temp2 dim kk = temp3 dim mtick = a rem MegaMan vars dim tick = b dim jumping = c dim falling = d dim xpos = e.f dim xposH = e dim ypos = g.h dim yposH = g dim temp = i.j dim velocity = k.l dim animFrame = ...
2 PRINT TAB(33);"NICOMA" 4 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 6 PRINT: PRINT: PRINT 10 PRINT "BOOMERANG PUZZLE FROM ARITHMETICA OF NICOMACHUS -- A.D. 90!" 20 PRINT 30 PRINT "PLEASE THINK OF A NUMBER BETWEEN 1 AND 100." 40 PRINT "YOUR NUMBER DIVIDED BY 3 HAS A REMAINDER OF"; 45 INPUT A 50 PRINT "...
10 BORDER 0: PAPER 0 20 CLEAR VAL "24499" 25 POKE VAL "23739",VAL "111" 30 LOAD ""SCREEN$ 40 LOAD ""CODE 45 POKE VAL "23388",VAL "22" 50 OUT VAL "32765",PEEK VAL "23388" 60 LOAD ""CODE 61 POKE VAL "23388",VAL "20" 62 OUT VAL "32765",PEEK VAL "23388" 63 LOAD ""CODE 64 POKE VAL "23388",VAL "19" 65 OUT VAL "32...
* C Bristow / 2019.05.09 / Rocket Software * Compare Record ids and data between two files and put the difference in a 3rd file * PROGRAM.NAME="COMPARE.FILE" DIFF.FILE = "DIFF.OUT" COMMAND = @SENTENCE CONVERT " " TO @FM IN COMMAND NUM.SENTENCE.ELEMENTS = DCOUNT(COMMAND,@FM) FILE1 = COMMAND<NUM.SENTENCE.ELEMENTS-1> FILE...
'spiel: 'gegeben ist gitter mit zahlen darin. 'um die zu verwendende farbe fr ein k„stchen zu erhalten, 'z„hle man die 4 angrenzenden zahlen zusammen, und ziehe die 'farbanzahl so oft wie m”glich ab. der rest ist die farbe (MOD) 'zu erstellen: 'die zahlen links, oben und unten werden per zufall erzeugt. 'dann...
10 REM Lunar lander program. 20 LET dist = 100 30 LET v = 1 40 LET fuel = 1000 50 LET mass = 1000 60 PRINT "You are a in control of a lunar lander." 70 PRINT "You are drifiting towards the surface of the moon." 80 PRINT "Each turn you must decide how much fuel to burn." 90 PRINT "To accelerate enter a positive number...
' Nikola Kuhar ' PROB1 DIM quantity AS INTEGER DIM price AS SINGLE DIM total AS SINGLE LET quantity = 0 LET price = 0 LET total = 0 CLS PRINT "Nikola Kuhar" PRINT PRINT TAB(5); "ORDER CALCULATOR" PRINT INPUT "Enter the quantity: ", quantity INPUT "Enter the item price: ", price LET total = quantity *...
DEFINT A-Z DIM SHARED etype(5, 13), ename$(5) DIM SHARED inven(18), in$(18), inprop(18) DIM SHARED charstat(3, 4), curhp(3), curgold, curmp, ErrorLevel DIM SHARED mpused(12), levelup(4), curexp(3), curlev(3), equip(3, 2) DIM SHARED spellsknown(12), mapnumber, enemyat(4), cannotrun DIM SHARED weak(5), strn(5), maglea...
10 print tab(27)"bombrun" 13 print tab(20)"creative computing" 15 print tab(18)"morristown, new jersey" 19 print:print 20 print"this program simulates a bombing run. do you need" 25 x5=3000 30 print"instructions"; 40 input i$ 50 if i$="yes" then 90 60 if i$="no" then 290 70 print"illogical response. reply 'yes' or 'n...
#COMPILE EXE #DIM ALL #INCLUDE "WIN32API.INC" #INCLUDE "mmfcomm.inc" FUNCTION PBMAIN () AS LONG LOCAL mmfchannel AS MMFChannelType LOCAL pid AS DWORD LOCAL cmd, vol AS STRING pid??? = SHELL("MP3Playback.exe " + "AliciaKeyes-Fallin.mp3", 6) OpenMMFChannel("COMMAND", mmfchannel) ON ERROR GOTO...
' ======================================================================================== ' Demonstrates the use of the transformNodeToObject method. ' ======================================================================================== #DIM ALL #COMPILE EXE #INCLUDE ONCE "msxml.inc" #INCLUDE ONCE "ole2utils.inc"...
' Este codigo ha sido generado por el modulo psexport 20180802-w32 de PSeInt. ' Es posible que el codigo generado no sea completamente correcto. Si encuentra ' errores por favor reportelos en el foro (http://pseint.sourceforge.net). DIM valor1 AS LONG DIM valor10 AS INTEGER DIM valor2 AS STRING DIM valor3 AS STRING D...
DEFINT B-Z RANDOMIZE TIMER joy = 0 SCREEN 7 IF a = a + 1 THEN 'joy = 1 CLS LINE (50, 50)-(150, 150), 8, BF CIRCLE (100, 100), 0, 15 CIRCLE (100, 100), 1, 15 CIRCLE (100, 100), 2, 7 CIRCLE (100, 100), 3, 8 CIRCLE (101, 100), 0, 15 CIRCLE (101, 100), 1, 15 CIRCLE (101, 100), 2, 7 CIRCLE (101, 100), 3, 8 C...
5 'A Game by Fabrizio Radica - www.retroacademy.it 10 CLEAR:CALL &BC02:MODE 0:CLS:BORDER 0:INK 0,0:ON BREAK GOSUB 8000 20 OUT &BC00,0:OUT &BD00,127 30 OUT &BC00,4:OUT &BD00,18 40 OUT &BC00,5:OUT &BD00,15 50 OUT &BC00,6:OUT &BD00,15 60 OUT &BC00,7:OUT &BD00,17 70 WINDOW #0,1,20,1,15: ORIGIN -1,-1 200 SYMBOL 240,...
0 IFPEEK(#9)<>67THENCALL#FFFF 3 POKE26,1 4 DIMV$(30),N$(30):GOTO3000 10 HIRES:INK0:PAPER0 12 CURSET0,180,3:DRAW10,10,1:DRAW10,5,1:DRAW10,0,1:DRAW10,-5,1:DRAW10,-10,1 14 DRAW5,-10,1:DRAW0,-10,1:DRAW-5,-10,1:DRAW-20,-40,1:DRAW-10,-10,1 16 DRAW-5,-5,1:DRAW-5,-2,1:DRAW5,3,1:DRAW10,11,1:DRAW5,5,1:DRAW10,40,1 18 D...
10 PRINT EXP(1) 20 PRINT EXP(2)
10 rem **** pianoforte elettronico **** 100 si = 54272: rem sid base 110 cn = 1022727: rem clock ntsc in hz 120 cp = 985248 : rem clock pal in hz 130 z = 0 140 p = 1: rem polifonia (attiva) 150 wf = 16: rem forma d'onda triang. 160 m = 1 170 ok = 1: rem ottava piu' alta 180 hb = 256 190 sp =...
Declare sub AnyKey () Declare function OneKey$ () DECLARE SUB RepeatLenCheck () DECLARE SUB PrintDigrStat () DECLARE SUB PrintMonoStat1 () DECLARE SUB PrintMonoStat2 () DECLARE SUB PrintMonoStat3 () DECLARE SUB AperiodKeyGen () DECLARE SUB AlphaEntryMenu () DECLARE SUB StripCipherTxt () DECLARE SUB CipherTxtPrep () DEC...
1 rem *************** 2 rem * example 3 rem * read & write 4 rem * a sequential 5 rem * data file 6 rem *************** 10 print"{clr}{down}{down}{rght}{rght}{rght}initialize disk" 20 dima$(25) 30 dimb(25) 40 open15,8,15,"i0" 60 gosub 1000 70 cr$=chr$(13) 80 print 90 pr...
' Copyright (c) 1988 Crescent Software DEFINT I-N DEFDBL A-H, O-Z SUB KEYCHECK STATIC ' Check user response subroutine LOCATE 25, 1 PRINT TAB(24); "< press any key to continue >"; WHILE INKEY$ = "": WEND END SUB
10 IF HTTPRECV=0 THEN GOTO 10 20 PRINT HTTPRECV$ 25 IF HTTPRECV$="stop" THEN GOTO 40 30 GOTO 10
100 INIT 110 DIM R$(2000),F$(200) 120 CALL "TIME",R$ 130 IF LEN(R$)>0 THEN 170 140 PRINT "ENTER DATE AND TIME (DD-MON-YY HH:MM:SS:"; 150 INPUT A$ 160 CALL "SETTIM",A$ 170 PRINT "HOW MANY DEVICES ON YOUR SYSTEM?:"; 180 INPUT N 190 DIM D(N) 200 PRINT "ENTER DEVICE ADDRESSES:"; 210 INPUT D 220 FOR I=1 TO N 230 PRINT " TH...
10 PALETTE 12,63:PALETTE 13,0 20 FOR X=0 TO 15 30 READ A 40 PALETTE X,A 50 NEXT X 60 POKE &HE6C6,&H21:HSCREEN 2 70 DATA 0,36,54,38,4,&H20,&H24,&H36,2,&H10,&H12,9,&H26,7,&H38,&H3F 80 GOTO 80
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...
CLS OPEN "matrix.in" FOR INPUT AS #1 OPEN "matrix.out" FOR OUTPUT AS #2 INPUT #1, m, n DIM a(m, n) FOR i = 1 TO m FOR j = 1 TO n INPUT #1, a(i, j) NEXT j NEXT i FOR i = 1 TO m FOR j = 1 TO n PRINT #2, LTRIM$(STR$(a(i, j))); " "; NEXT j PRINT #2, NEXT i PRINT #2, LTRIM$(STR$(m)); " ";LT...
Attribute VB_Name = "FileIO" Option Explicit Const FileIO_declarations_end = 0 Sub PositionInfo_ProjectFile_Write(f As Integer, pi As PositionInfoType) Call ProjectFile_Write(f, pi.Left, "pi.Left") Call ProjectFile_Write(f, pi.Top, "pi.Top") Call ProjectFile_Write(f, pi.Width, "pi.Width") Call ProjectFil...
'********** QuickMENU 3.2 - by Jay Munro 'Copyright (c) 1989 Jay Munro 'Copyright (c) 1989 Crescent Software 'revision 8/90 Version 3.2 'QuickBASIC 4.5 version - load into the QB 4.5 editor with Pro.QLB 'For distribution rights please call Crescent Software 'Assembly Routines from QuickPak Professional 'Note - Releas...
Attribute VB_Name = "CIPHER_RIJNDAEL_LIBR" Option Explicit 'Requires that all variables to be declared explicitly. Option Base 0 'The "Option Base" statement allows to specify 0 or 1 as the 'default first index of arrays. Private Const PUB_KEY_LENGTH = 256 'or 128 or ...
10 INPUT X 20 Y$=CHR$(-(X>=1)*ASC("y"))+CHR$(-(X>=1)*ASC("e"))+CHR$(-(X>=1)*ASC("s"))+CHR$(-(X<1)*ASC("n"))+CHR$(-(X<1)*ASC("o")):PRINT Y$ 
LET t = TIME LET MAX = 2000 DEF pent(n) = n*(3*n-1)/2 FOR j = 1 TO MAX FOR k = j+1 TO 2*MAX-1 LET p_j = pent(j) LET p_k = pent(k) LET diff = p_k - p_j LET p = ROUND(SQR(ROUND(diff*2/3,5) + ROUND(0.16667^2,5)),5) + 0.16667 IF p = INT(p) THEN LET sum = p_...
10 FOR I = 10 STEP -1 WHILE I > 0 20 PRINT I 30 NEXT I 90 STOP 99 END
CLS COLOR 2 PRINT "Thank you for choosing JT's cool program." PRINT "Please wait while setup copys important files to c:\JTsProg\" PRINT "Instaling... " COLOR 0 SHELL "md c:\JTsProg" SHELL "copy a:\data\koolprog.exe c:\JTsProg\*.*" COLOR 12 PRINT "While this is ha...
'********** Stuffbuf.Bas - demonstrates stuffing the keyboard buffer 'Copyright (c) 1989 Ethan Winer 'IMPORTANT: Do not run this program from within the QuickBASIC editor. ' 'This program illustrates the steps needed to execute a batch file from 'within a QuickBASIC program. In many cases, this will be preferrable ...
10 /* *FNCファイルの関数を調べる 20 /* 30 str fname,fun: int tokenptr=0,ch,fp,fn,i 40 input "ファイル名";fname 50 fp = fopen(fname, "r") 60 fseek(fp, &H40+&H20, 0) 70 for i=0 to 3 80 tokenptr = tokenptr*256 + fgetc(fp) 90 next 100 fseek(fp, &H40+tokenptr, 0) 110 fn=0: i=0 120 while not feof(fp) 130 ch = fgetc(fp) 140 if ...
@ERASE 0 REM GETU, GETS, GETM tester @INIT 10 10 Z = 1 11 A = baud 1152 12 A = pioout 20 13 A = pioclr 20 14 A = pioout 9 15 A = pioset 9 16 ALARM 5 17 RETURN @IDLE 50 50 RETURN @ALARM 100 100 PRINTU"Type 5 chars to the 101 PRINTU"UART\n\r" 102 GETU 5 103 PRINTU "You wrote: 104 PRINTU $0 105 PRINTU"\n\r 106 PRI...
1 SCREEN 9 DIM x AS INTEGER DIM y AS INTEGER DIM S(1000) AS INTEGER DIM R(1000) AS INTEGER DIM C(1000, 1000) AS INTEGER INPUT "X"; a INPUT "Y"; b INPUT "Value"; C S(a) = C R(b) = C C(x, y) = S(x) C(x, y) = R(y) y = 30 x = 10 2 PRINT "X:"; x / 10; " Y:"; (y - 20) / 10; INPUT "Direction"; q$ IF q$ = "" THEN END END ...
10 :REM'COLCODE - Resistor Colour Code - 17 APR 96 rev. 20 IF EX$=""THEN EX$="EXIT" 30 CLS:KEY OFF 40 COLOR 7,0,0 50 DIM C$(9),R(24) 60 U$="####,###.###" 70 UL$=STRING$(80,205) 80 ER$=STRING$(29,32) 90 :REM' 100 DATA BLACK,BROWN,RED,ORANGE,YELLOW,GREEN,BLUE,VIOLET,GREY,WHITE 110 FOR Z=0 TO 9 120 READ C$(Z) 130 NEXT Z 1...
COMMON PROGRESS$, SPEED, BOOMERANG, MAX, MAN, ROOM, CASTLE, X, Y, PX, PY, FACE$, STEPS, MONEY, KEYS, ITEM$, SOUND$, NAME$, COUNTRY$, SAVEFILE$ SCREEN 13 CLS : LOCATE 12, 12: COLOR 15: PRINT "Save your progress?" CHOICEYRN: DO: YESORNO$ = INKEY$: LOOP UNTIL YESORNO$ <> "" IF UCASE$(YESORNO$) = "Y" THEN GOTO SAVE IF UCA...
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...
1 REM Derek Trom 2 REM derek.trom@und.edu 5 REM Part 1 Program 5 10 PRINT "Welcome" 15 INPUT "What is the cost"; cost 20 INPUT "What is the amount paid"; paid 25 PRINT "The cost is: " 30 PRINT USING " $$$$$$$#.##"; cost 35 PRINT "You paid:" 40 PRINT USING " $$$$$$$#.##"; paid 45 cost = cost * 100 50 paid = paid * 100...
1 %TITLE "Convert from RSTS/E to VMS" %SBTTL "GL_CONV_CONVERT" %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 !...
10 REM TEST CALCULATIONS WITH CONSTANT VALUES 11 OPTION CACHE_CONST_EXPR TRUE 12 DEF FNR(D) = D * 3.1415 / 180 20 PRINT "PRECISION 7" 30 GOSUB 100 32 GOSUB 200 50 OPTION PRECISION 10 60 PRINT "PRECISION 10" 70 GOSUB 100 72 GOSUB 200 99 STOP 100 REM PROC A 110 LET S1 = SIN(30 * 3.1415 / 180) 120 LET S2 = SIN(45 * 3.1415...
Attribute VB_Name = "Tools_NamingFiles" Sub rename() Dim filelist As New Collection Dim fName As String Dim i As Integer Dim filetype As String '======================================================================= 'Message box to ask the file type filetype = "doc" '==========================...
1 %TITLE "Standard Industrial Codes" %SBTTL "TK_MAIN_SIC" %IDENT "V3.6a Calico" FUNCTION LONG TK_MAIN_SIC(CDD_WINDOW_CDD SMG_WINDOW, LONG MOPTION, & LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1987 BY ! ! Computer Management Center ! Idaho Falls, Idaho. ! ! This software is furnished under a ...
2 for l=54272 to 54296: poke l,0: next 5 s=54272 10 poke s+24,15: poke s+5,88: poke s+3,15: poke s+2,15: poke s+6,89 20 read h: if h=-1 then end 30 read l 40 read d 60 poke s+1,h: poke s,l: poke s+4,65 80 for t=1 to d: next: poke s+4,64 85 for t=1 to 50: next 90 goto 20 100 data 33,135,250,42,62,250,50,60,250,42,62,125...
10 REM LOGICAL 'EOR' TEST PROGRAM 20 A = 6 30 B = 8 40 IF A=3 EOR B=8 THEN 70 50 PRINT "EOR FAILED THE TEST AS A LOGICAL OPERATOR" 60 GOTO 99 70 IF A=6 EOR B=8 THEN 90 80 PRINT "EOR PASSED THE LOGICAL OPERATOR TEST" 85 GOTO 99 90 PRINT "EOR FAILED THE 'EXCLUSIVE OR' TEST" 99 END
Attribute VB_Name = "Module1" Option Explicit Public Declare Function ShellExecute Lib "SHELL32.DLL" Alias _ "ShellExecuteA" (ByVal hwnd As Long, ByVal lpszOp As _ String, ByVal lpszFile As String, ByVal lpszParams As String, _ ByVal lpszDir As String, ByVal FsShowCmd As Long) As Long Public Declare Function GetD...
DIM SHARED h DIM SHARED enemynum DIM SHARED cpoint DIM SHARED hp DIM SHARED enemyhealth DIM SHARED karma DIM SHARED Name$ DIM SHARED s DIM SHARED w DIM SHARED A(10000) PRINT "MENU" DIM SHARED XpPoint$(100) DIM SHARED filename$ PRINT PRINT "1) Create New File" PRINT PRINT "2) Name an Old File" PRINT PR...
10 PRINT "PROGRAM FILE 138: COUPON COLLECTOR TEST OF RND FUNCTION." 20 PRINT " ANSI STANDARD 8.4" 30 PRINT 40 PRINT "SECTION 138.1: COUPON COLLECTOR TEST OF RND FUNCTION." 50 PRINT 60 PRINT "THIS PROGRAM TESTS HOW MANY RANDOM NUMBERS MUST BE GENERATED" 70 PRINT "(UP TO A MAXIMUM) TO GET AT LEAST ONE OF EACH TYPE. A ...
1 %TITLE "General Journal Report (Alternate)" %SBTTL "GL_RPRT_GJREP1" %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 ...
10 LET X = 3 20 LET Y = 4 50 PRINT X 60 STOP
' Copyright 1992 Crescent Software DEFINT I-N DEFDBL A-H, O-Z DECLARE SUB USERFUNC (X, FX) SUB IMMROOT (XMIN, XMAX, TOL, IER, MAXIT, NORDER) STATIC ' Improved memory method root-finding subroutine ' Input ' XMIN = initial estimate of left side of bracketing interval ' XMAX = initial estimate...
0 REM ENGINE PARA ADVENTURES POR MENUS - EMERSON JOSE SILVEIRA DA COSTA (ENSJO) - 2013-03-28. 1 TEXT : POKE 856,2: DIM AA(23),AA$(8):AA$(1) = CHR$ (27) + "=": GOTO 100 2 ON AA(0) GOTO 10,24,9: STOP 3 PRINT AA$(1); CHR$ ( PEEK (857)); CHR$ (32 + PEEK (858));: POKE 910,0: RETURN 4 CALL 49158: IF PEEK (284) = 3 TH...
' -------------------------------------------------------------------------- ' Testsuite für Open-Maxi ' von Dietmar Harlos am 24. Mai 2012 ' am 24. Juni 2018 rudimentär für komfortable 32-Bit-Erweiterung angepaßt ' am 30. Juni 2018 den PC-Programmtest nach FreeBASIC portiert ' ----------------------------------...
Operation =1 Option =0 Having ="(((loc_T_StatusRecord.CategoryID)>0) AND ((Sum(loc_T_StatusRecord.Interval))>0))" Begin InputTables Name ="loc_T_StatusRecord" Name ="loc_KomoriStatusCodes" End Begin OutputColumns Expression ="loc_T_StatusRecord.DeviceID" Expression ="loc_T_StatusRecord.CategoryID" ...
10 READ R 15 LET C=1 20 FOR X=10 TO 10-R+1 STEP -1 30 LET C=C*X/(10-X+1) 40 NEXT X 50 LET P=C*(1/6)^R*(5/6)^(10-R) 60 PRINT P 65 DATA 2 70 END
Attribute VB_Name = "Integration" Option Explicit 'The data in the x direction must be equally spaced for 'all methods of integration in this module! Public Sub TestIntegration() Dim NumInterval As Integer Const xLM1 As Integer = -37 Const yLM1 As Integer = -39 Dim i As Integer, r As Integer Dim poly(0 To 4) A...
0REM THE BEST OF INTERFACE PAGE 40 10 REM ICE CAVE 20 REM NORMAN ALM 30 REM *ICE CAVE MK. 1* 40 GOSUB 190 50 INPUT"ICE CAVE NUMBER"N 60 IF N=2 THEN GOTO 140 70 IF N=1 THEN GOTO 90 80 PRINT $12;GOTO 50 90 CLEAR 4;X=ABSRND%256;Y=ABSRND%192 100 FOR R=50 TO 425 STEP 3;MOVE R,20;DRAW X,R;DRAW (X-R),Y 110 DRAW 20,(Y-R);DRAW...
100 REM Program to demonstrate animation based on rotations 110 REM with the DRAW statement. 120 SCREEN 1,0:COLOR 0,1:KEY OFF:CLS 130 REM Define image to be rotated 140 IMAGE$="bm+6,-5 d10 l12 u10 r4 br4 r4 bl6 bd3 m+0,0" 150 REM Draw and GET image rotation #0 160 DRAW "c3 a0 bm10,10"+IMAGE$ 170 DIM ANGLE0(100...
CLS Header$ = "This is a sample program." Error$ = "Double data type causes inaccuracies." Num1% = 5 Num2% = 6 Num3& = 45000 Num4& = 54000 Num5! = 4.5 Num6! = 6.75 Num7# = 56000.25 Num8# = 89000.34 PRINT Header$ PRINT Error$ PRINT Num1% + Num2% + Num3& PRINT Num6! / Num5! PRINT Num8# + Num2%; " -- should be exactly 89...
DIM a$(100) INPUT "Please enter your name: ", a$ PRINT "Hello, "; a$