text
stringlengths
7
5.36M
10 'Чтение программного файла 20 OPEN "Симпсон" FOR INPUT AS#1 30 LINE INPUT #1,R$:PRINT R$ 50 IF NOT EOF(1) THEN 30 60 CLOSE #1 
' Copyright (c) 1991 Crescent Software DEFINT I-N DEFDBL A-H, O-Z DECLARE SUB FFUN (X, FVAL) DECLARE SUB GFUN (X, FVAL) SUB FFUN (X, FVAL) STATIC ' Initial conditions function subroutine ' y = f(x) ' Input ' X = x value ' Output ' FVAL = forcing function value at X, Y PI = 4# * A...
10 FOR I = 1 TO 3 20 READ P(I) 30 NEXT I 40 FOR I = 1 TO 3 50 FOR J = 1 TO 5 60 READ S(I, J) 70 NEXT J 80 NEXT I 90 FOR J = 1 TO 5 100 LET S = 0 110 FOR I = 1 TO 3 120 LET S = S + P(I) * S(I,J) 130 NEXT I 140 PRINT "TOTAL SALES FOR SALESMAN "J, "$"S 150 NEXT J 200 DATA 1.25, 4.30, 2.50 210 DATA 40, 20, 37, 29,...
OPEN "BFI2.COM" FOR BINARY AS #1 A$ = INPUT$(LOF(1), 1) + " " CLOSE #1 OPEN "BFI24.BIN" FOR OUTPUT AS #1 C = 0 FOR A = 1 TO LEN(A$) / 3 B1 = ASC(MID$(A$, A, 1)): R1 = (B1 AND 192) / 4: B1 = B1 AND 63 B2 = ASC(MID$(A$, A + 1, 1)): R2 = (B2 AND 192) / 16: B2 = B2 AND 63 B3 = ASC(MID$(A$, A + 2, 1)): R3 = (B3 AND 19...
100 REM Program to monitor the states of the 110 REM CapsLock and NumLock keys. 120 SCREEN 1,0:COLOR 0,1:CLS:KEY OFF 130 REM Print labels 140 LOCATE 3,10:PRINT "CAPSLOCK STATE" 150 LOCATE 8,10:PRINT "NUMLOCK STATE" 160 LOCATE 15,8:PRINT "PRESS THE = KEY TO END" 170 REM Point segment to BIOS variables 180 DEF ...
REM @english REM TEXTS OUTPUT WITH WRITING MODE (1) REM REM This example shows the various combination allowed when using the ''WRITING'' command, REM and its effects in terms on graphical effects. Note that the text output will be the REM same for every call, while the output will differ in base of ''WROTR' REM ...
1 %TITLE "File Reconciliation Maintenance" %SBTTL "CK_MAIN_CKMNT" %IDENT "V3.6a Calico" FUNCTION LONG CK_MAIN_CKMNT(CDD_WINDOW_CDD SMG_WINDOW, LONG MOPTION, & LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1987,1988 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software ...
Version =20 VersionRequired =20 Begin Form AutoCenter = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =2 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =13140 DatasheetFontHeight =11 ItemSuffix =64 Right =1...
5 cls 10 print "mercury" 20 print "venus" 30 print "earth" 40 print "mars" 45 print "asteroid belt" 50 print "jupiter" 60 print "saturn" 70 print "uranus" 80 print "neptune" 90 print "pluto" 100 print "kuiper belt"
Operation =1 Option =0 Where ="(((dbo_ContactName.Email) Is Not Null And (dbo_ContactName.Email)<>\"\") AND ((d" "bo_ContactGeneral.IsClient)=True) AND ((dbo_ContactGeneral.IsCompetitor)=False) " "AND ((dbo_ContactName.DeleteMeYN)=False) AND ((dbo_ContactName.IsActive)=True))" Begin InputTables Name ="dbo_...
' ****************************************************************************** ' * Title : NTC.bas * ' * Version : 1.0 * ' * Last Updated : 01.08.2011 ...
10 DIM A$[100] 15 DELAY .1 20 INPUT "FILENAME? ";F$ 30 CREATE TEXT F$ 40 ASSIGN #1 TO F$ 50 ENTER :DOSLINK ;A$ 60 DISP A$ 70 PRINT #1;A$ 80 GOTO 40
Attribute VB_Name = "mdlPubLisDef" Option Explicit Public strChart(9) As Variant Public glngModual As Long '模块号 Public gblnNewLis As Boolean '是否为新版LIS Public gstrHospital As String Public gstrFilePath As String '图像保存路径 Public gstrSignPath As Strin...
10 INPUT A,B,H:P=0:X=A 20 IF X>=(A+B)/2 THEN FOR X=(A+B)/2+H/2 TO B STEP H/2:P=1 ELSE FOR X=A TO (A+B)/2 STEP H 30 PRINT X;SIN(X) 40 NEXT:IF P=0 THEN GOTO 20 
10 REM THIS PROGRAM COMPUTES THE VALUES OF THE 20 REM FIRST 4 MOMENTS, SKEWNESS AND KURTOSIS 30 LET A = 0 40 LET B = 0 50 LET C = 0 60 LET D = 0 70 PRINT "NUMBER OF SAMPLES = " 80 INPUT N 90 FOR I = 1 TO N 100 PRINT "SAMPLE = " 110 INPUT X 120 LET A = A + X 130 LET B = B + (X^2) 140 LET C = C + (X^3) 150 LET D = D + (X...
Attribute VB_Name = "Module2" Sub PageMasterCreator() Attribute PageMasterCreator.VB_ProcData.VB_Invoke_Func = " \n14" ' ' PageMasterCreator Macro ' ' 'Declare the worksheet where user input is given. Dim MainSheet As Worksheet Set MainSheet = Worksheets("Main") 'Declare a string for error di...
dbMemo "SQL" ="SELECT *\015\012FROM qry_Tgt_Species_List_Park_Summary_Data\015\012ORDER BY Fami" "ly, utah_species;\015\012" dbMemo "Connect" ="" dbBoolean "ReturnsRecords" ="-1" dbInteger "ODBCTimeout" ="60" dbBoolean "OrderByOn" ="-1" dbByte "Orientation" ="0" dbByte "DefaultView" ="2" dbBoolean "FilterOnLoad" =...
DECLARE SUB TRAPZD (DUM!, A!, B!, S!, N!) DECLARE SUB POLINT (XA!(), YA!(), N!, X!, Y!, DY!) SUB QROMB (DUM, A, B, SS) EPS = .000001 JMAX = 20 JMAXP = JMAX + 1 K = 5 KM = K - 1 DIM S(JMAXP), H(JMAXP) H(1) = 1! FOR J = 1 TO JMAX CALL TRAPZD(DUM, A, B, S(J), J) IF J >= K THEN CALL POLINT(H(), S(), ...
1 %TITLE "Accounts Payable Closing Program" %SBTTL "AP_SPEC_MERGECLOSED" %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 in...
Version =20 VersionRequired =20 Begin Form DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =4380 DatasheetFontHeight =11 ItemSuffix =8 Right =23730 Bottom =12255 Dat...
10 INPUT R,G,B 20 V=0 30 LR=(R AND 1):HR=(R AND 2) 40 LG=(G AND 1):HG=(G AND 2) 50 LB=(B AND 1):HB=(B AND 2) 51 HR=HR//2 52 HG=HG//2 53 HB=HB//2 60 V=V+HR*32+4*LR 65 V=V+HG*16+LG*2 70 V=V+HB*08+LB 80 PRINT V 100 GOTO 10
1 a% = 5 2 IF a% + 1 > 10 THEN 3 a% = 0 4 b% = 1 5 END IF 6 REM Hi 7 STOP
CLS PRINT "THE PROGRAM THAT" PRINT , "PRODUCED THIS OUTPUT" PRINT , , "SHOWS THAT I KNOW HOW" PRINT , "TO EFFECTIVELY USE" PRINT "PRINT ZONES."
10 ! ! PRINTER OTHELO PROGRAM -- KEVIN HANDY ! 100 ! INITIALIZE 105 PRINT CHR$(155%)+"E" 110 RANDOM \ READ V%(X%,Y%) FOR X%=1% TO 4% FOR Y%=1% TO 4% & \ V%(X%,Y%)=V%(9%-X%,Y%) FOR X%=5% TO 8% FOR Y%=1% TO 4% & \ V%(X%,Y%)=V%(X%,9%-Y%) FOR X%=1% TO 8% FOR Y%=5% TO 8% & \ DIM V%(8%,8%) 120 READ D%(X%,1%),D%(X%,2) FO...
Attribute VB_Name = "P_UnProtected" '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * '* Module : P_UnProtected - удаление пароля с Excel '* Created : 15-09-2019 15:48 '* Author : VBATools '* Contacts : http://vbatools.ru/ https://vk.com/vbatools '* Copyright : VBA...
1 DIMGA(44,44),IS(5,3),P(11),SV(20),ST,SL,F,MC 2 MC=15360:GOTO30 5 FORF=1TOSL:PRINTCHR$(ST);:NEXT:RETURN 30 CLS0:C1=0:RB=0 40 GOSUB5690 50 GOTO5850 60 PL(2)=6:PL(4)=6:PL(5)=50:PL(6)=3:PL(7)=3 80 CLS:PRINT@0,"";:SL=96:ST=175:GOSUB5:PRINT@39,"creating";CHR$(175);"the";CHR$(175);"galaxy"; 90 C=0 100 C=C+1 110 IFC=1THENX=1...
10 LET ti=65536*PEEK 23674+256*PEEK 23673+PEEK 23672 20 PAPER 0: BORDER 0: LET c=43: LET d=175: LET t=0: INK 7: FOR n=0 TO 10: LET b=2+5*(t=1): PRINT AT n*2,0; PAPER b,,,,AT n-1,0; PAPER 1;TAB 10: LET t=1-t: NEXT n: 30 FOR o=0 TO 40 STEP 5: LET d=(d-8) 40 FOR x=10 TO 75+(n) STEP 13 50 LET c=x-(0.3*n) 60 FOR...
100 SCREEN 0,0,0,1:CLS 3 ' {DELAY1:50} 110 POINT(320,100) 120 A$="C4U60R60D60L60" 130 DRAW A$ 140 DRAW "BE45A2S0.5X=A$;" 150 DRAW "A0BE10P" 160 PSET (440,40) 170 LINE -STEP(60,60),7,BF 180 PRESET(455,55) 190 LINE -STEP(30,30),0,B 200 PAINT (456,56),0 210 END
10 REM Fibonnaci series 20 LET MAX = 5000 30 LET X = 1 40 LET Y = 1 50 IF (X > MAX) GOTO 200 60 PRINT X 70 X = X + y 80 IF (Y > MAX) GOTO 200 90 Y = X + Y 100 GOTO 50 200 END symlist
5 REM "SCREEN MENU IN TEXT MODE" 6 REM "TWO POSSIBLE OPTIONS" 7 REM "START THE GAME OR EXIT" 10 SCREEN 0 20 LOCATE 10,3 30 PRINT "EASYTR0N" 40 LOCATE 5,10 50 PRINT "1 Start Game" 60 LOCATE 5,15 70 PRINT "2 Exit Game" 75 REM "WHILE NO VALID OPTION REPEAT" 80 A$=INKEY$ 90 IF A$="1" THEN 110 100 IF A$="2" TH...
'============================================================================ ' To: Nick Coons Number: 9663 Refer: 0 ' From: Jim Broadbent Conference: Quik_Bas (3) ' Date: 09-09-96 13:57 BBS Name: The Programmer's Mark BBS 'Subject: Continuous Graph 2/3 ...
90 print "wait..." 100 dim f(32) 110 for i=0 to 31 120 x=440*2^((i-12)/12) 140 f(i)=4096-(115206.1875/x) 150 next 160 cls 161 print "*** LM80C Piano ***" 162 print 163 print "by Antonino Porcino, 2020" 164 print:print 165 print " 2 3 5 6 7 9 0 166 print " Q W E R T Y U I O P 167 print 168 print " S D G H J 169 ...
Attribute VB_Name = "mdlPublic" Option Explicit '常量--------------------- Public Const G_STR_PASS As String = "合理用药部件" Public Const G_STR_MATCH As String = "abcdefghigklmnopkrstuvwxyzABCDEFGHIGKLMNOPKRSTUVWXYZ0123456789"" </>_=" Public Const G_INT_MODEL_0 As Integer = 0 Public Const G_INT_MODEL_1 As Integer = 1 Public ...
* ENCODING=ISO-8859-1 NAME ../miplib2010_pre_intslacks/triptim1.pre.mps.gz Iterations 31955 Rows 14116 Cols 29271 XL fya#1#2 floxa#2 XL fxa#2#3 floya#2 XL fxa#2#1371 floxa#3 XL fya#2#3 floya#3 XL fya#2#1371 floxa#4 XL fxa#3#4 floya#4 ...
5 'from Lauwerier H., 1991. "Fractals Images of Chaos" Penguin 209p. 10 'Cantor Comb 20 'Name: COMB 30 SCREEN 12, 0, 0, 0: CLS 40 WINDOW (-.3, -.4)-(1.3, .8) 45 COLOR : LOCATE 1, 1: PRINT "Cantor comb" 50 DIM a(729), b(729): a(0) = 0: a(1) = 1 60 b = .1: LINE (0, 0)-(1, 0): LINE -(1, -b): LINE -(0, -b): LINE -(0, 0) ...
1 CMP 10 GOTO 10000 13 GOTO 15 14 PCLEAR 1:GOTO 13 15 CLEAR700,&H4CA0:LOADM"TOY":LOADM"WINDOW":WIDTH 32:CLS:PRINT"WHICH SPEED UP POKE?":PRINT"A) COCO 3":PRINT"B) COCO 2":PRINT"C)NONE":INPUT A$:IF A$="A" THEN QS=65496:QF=65497 :ELSE IF A$="B"THEN QS=65494:QF=65495 :ELSE QS=65494:QF=65494 16 POKEQF,0:CLS2:PRINT@72,"*** M...
Attribute VB_Name = "M_hebrew" Option Explicit Option Private Module ' Sub jdn_hebrew(jdn As Long, _ ByRef iYear As Integer, _ ByRef iMonth As Integer, _ ByRef iDay As Integer, _ Optional monthcoding As Integer = UnSigned) Dim InputJDN As Long Dim tish...
DIM c AS DOUBLE DIM i AS LONG DIM j AS LONG DIM a(1 TO 10) AS DOUBLE FOR i = 1 TO 10 a(i) = i*10 NEXT i FOR aux_index_1 = LBOUND(a,1) TO UBOUND(a,1) PRINT a(aux_index_1) NEXT aux_index_1 DIM b(1 TO 3, 1 TO 6) AS DOUBLE c = 0 FOR aux_index_1 = LBOUND(b,1) TO UBOUND(b,1) FOR aux_index_2 = LBOUND(b,2) TO UBOUND(b,2) ...
10 DIM LL(4),P(-1) 20 W=#FFF4 30[ 40:LL0 LDX @8 initialise X 50:LL1 LDA @#2A code for star 60:LL2 JSR W output it 70 DEX count it 80 BNE LL2 all done? 90 RTS 100] 110 END
10 DIM P%(15),P$(15) 20 DIM B(7000):HM=8:VM=8 30 FULLW 2 40 CLEARW 2 50 PRINT" **** PLEASE WAIT ***** 60 GOSUB 510 70 CLEARW 2 80 HP=1:Z=1:Q=1 90 VP=1:SW=1:CN=0:XP=0 100 HS=2:CUR=1 110 VS=2:HT=1:VT=1 120 C0=0:C1=1:C2=2:C3=3:C4=4 130 GOSUB 860 140 GOSUB 600 150 HG=HS...
1 %TITLE "Purchase Order Product Description List" %SBTTL "PO_RPRT_PRODUCT" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1990 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 ...
color 1,1 cls color 14,1 locate 5,5:print " HEADS " locate 7,5:print " CYLINDERS " locate 9,5:print " SECTORS " locate 12,5:print" SIZE " locate 17,5:print"LANDING ZONE " color 11,1 locate 9,27:print"* 512 Bytes" locate 12,32:print"Bytes" locate 13,32:print"kBytes" locate 14,32:print"MByt...
10 dim a(10) 20 for i=1 to 10 30 read b:a(i)=b 40 next i:print" c"," d" 50 data 100,35,0.1,61,79,82,3,6,0,1000 60 for i=1 to 20 70 c=int(rnd(0)*10)+1 80 d=a(c) 90 print c,d 100 next i
TYPE BMPHeader fileType AS STRING * 2 'equals "BM" to identify this as a BMP fileSize AS LONG 'the size of this file (equals LOF()) reserved AS LONG 'not used (perhaps in future) offset AS LONG 'the offset into the file of the image data headerSize AS LONG 'length of rest of header (always 40) imgWidth A...
'----------------------------------------------------------------------------- ' ' Sample program to drive LCD in 4-bit mode ' ' ' ' ' ' ' ' ' (C)2002, Advanced Digital Technologies ' ...
'============================================================================== ' Filename: MAIN_V***.BAS ' Revisions: ' V100 - Initial release. (Systems Team) '------------------------------------------------------------------------------ ' Abstract: ' This program is for homing and program start/stop '===============...
_TITLE "5cph software application" TYPE catranc wcr AS INTEGER rc1 AS LONG rc2 AS LONG rc3 AS LONG rc4 AS LONG rc5 AS LONG rc6 AS LONG rc7 AS LONG rc8 AS LONG rc9 AS LONG rc11 AS LONG rc12 AS LONG rc13 AS LONG rc14 AS LONG rc15 AS LONG rc1...
90 PRINT 100 REM *** INITIALIZE 110 DIM T(7,3) 120 E=0 130 FOR D=1 TO 7 140 FOR N=1 TO 3 150 T(D,N)=0 160 NEXT N 170 NEXT D 180 PRINT "TOWERS OF HANOI PUZZLE"\PRINT 200 PRINT "YOU MUST TRANSFER THE DISKS FROM THE LEFT TO THE RIGHT" 205 PRINT "TOWER, ONE AT A TIME, NEVER PUTTING A LARGER ON A" 210 PRINT "SMALLER DISK."\...
1 rem This was used to generate the random comment at the start of the file 2 rem Why I choose to seed the random number generator this way is lost to history 10 input a$ 15 a=asc(a$)-48 20 randomize a 25 dim c(100) 30 for i = 1 to 100 40 b = rnd(100) 41 bln=0 42 for j=1 to i-1 43 if c(j)=b then bln=1 44 nex...
Attribute VB_Name = "Module4" Option Explicit Public Function KesSifar() Dim xStat, yStat As Double Dim caseI As Integer Dim pt0(0 To 31) As Double Dim pt0a(0 To 17) As Double Dim pt1(0 To 7) As Double Dim pt2(0 To 11) As Double Dim TempX As Double Dim polypt0 As Object Dim polypt0a As Object Dim Polypt...
10 X=0 : POKE 20,0 :POKE 19,0:POKE 20,0 20 FOR I=1 TO 3000 30 X=X+1 40 NEXT I 50 PRINT PEEK(19) 60 PRINT PEEK(20) 990 POKE 764,255 999 IF PEEK(764)=255 THEN 999
SCREEN 9 10 x = x + .02 20 xx = x: yy = y y = SIN(x) * 50 REM 30 LOCATE y, x / 10: PRINT "Hallo" IF x > 12.8 THEN x = 0: CLS : xx = 0 ly = CLNG((y + 150) / 19): lx = CLNG((x * 50) / 8) LOCATE ly + 2, lx + 2: PRINT "H" IF x > 12 THEN x = 0: CLS GOTO 10
10 DIM A(10) 20 $A="ATOMBASIC" 30 $A+5=""; $A=$A+1 40 END
10 WIDTH 80:PALETTE 0,8:PALETTE 8,63:CLS 1 11 POKE &HD7C0,0:POKE &HD816,&H14 100 PRINT "MACRO ASSEMBLER": PRINT "(C) 1982 BY THE MICRO WORKS" 110 GOTO 130 'THIS IS NECESSARY 120 GOTO 140 130 PCLEAR 6:GOTO 120 140 F=(PEEK(188)-14)*256 150 IF F<0 THEN F=0 160 LOADM"AS%/BIN",F 161 POKE 3833,141 162 POKE 3853,130...
10 COLOR 15,4,7 20 SCREEN 2,0 30 CLS 40 SPRITE$(0)=CHR$(&B00000000)+CHR$(&B00000000)+CHR$(&B00100100)+CHR$(&B00111100)+CHR$(&B01011010)+CHR$(&B10011001)+CHR$(&B01111110)+CHR$(&B00100100) 50 PUT SPRITE 0,(127,96) 60 X=INT(RND(1)*20)*(-1)^Y:Y=INT(RND(1)*20)*(-1)^X 70 PUT SPRITE 0,STEP(X,Y) 80 FOR T=1 TO 50:NEXT 90 GOTO 6...
1 rem 2 rem initialization 3 rem 5 dim ch(3),cl(3),cc(1),cb(1),cm(1):ch(0)=102:ch(1)=32:ch(2)=43:ch(3)=42 10 cl(0)=0:cl(1)=9:cl(2)=8:cl(3)=1 15 sc=peek(648):cm=55296+256*(sc and2):sc=sc*256:poke 53281,9:poke 53280,11 20 print"{black}{clear}":fg=81:cf=4:m=0:gosub 600 25 for i=40 to 999:x=int(rnd(1)*4):m=m-(x=3) ...
' ******************************************************************** ' ' Fitxer....................: HIS_CLI.BAS ' Titol.....................: Modul per fer un historic de moviments ' d'un client. ' ******************************************************************** ' ' Data inici...........
10 DIM n(4, 4) 20 FOR i = 1 TO 4 30 FOR j = 1 TO 4 40 INPUT n(i, j) 50 NEXT j 60 NEXT i 70 FOR i = 1 TO 4 80 FOR k = 1 TO 3 90 FOR l = k + 1 TO 4 100 IF n(i, k) > n(i, l) THEN temp = n(i, k): n(i, k) = n(i, l): n(i, l) = temp 110 NEXT l 120 NEXT k 130 NEXT i 140 FOR i = 1 TO 4 150 FOR j = 1 TO 4 160 PRINT n(i, j); 170 ...
'********** GetVMode.Bas - returns info about the current video mode 'Copyright (c) 1988 Ethan Winer DEFINT A-Z DECLARE SUB GetVMode (Mode, Page, PageSize, Rows, Columns) GetVMode Mode, Page, PageSize, Rows, Columns CLS PRINT "The current video mode is"; Mode PRINT "BASIC is currently viewing page"; Page PRINT "Th...
dbMemo "SQL" ="select * from qry_Sp_Rpt_BT_Add_Sp\015\012union\015\012select * from qry_Sp_Rpt_" "BT_Exotics\015\012union\015\012select * from qry_Sp_Rpt_BT_Exotic_Freq\015\012un" "ion\015\012select * from qry_Sp_Rpt_SI_Exotics\015\012union\015\012select * from" " qry_Sp_Rpt_BT_Seedlings\015\012union\015\0...
0 REM ************************ 1 REM * - CCESOFT - * 2 REM *OTTO LONGO SERNATINGER* 3 REM * VERSAO 1.1 05/85 * 4 REM ************************ 5 REM * NUMERO OCULTO * 6 REM ************************ 10 HOME 15 PRINT TAB( 11)"- CCESOFT -": PRINT 20 PRINT TAB( 9)"TENTE DESCOBRIR ...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault AllowDeletions = NotDefault DividingLines = NotDefault AllowAdditions = NotDefault AllowDesignChanges = NotDefault PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =11517 Datas...
5 REM This file passed through VX Heavens http://vx.org.ua 10 REM ************************************************* 20 REM *** Демонстрационный вирус BV3.BAS *** 30 REM *** Автор Р.Бургер 1987 *** 40 REM ************************************************* 50 ON ERROR GO TO 670 60 REM ***...
/' Copyright (c) 2011, SavedCoder. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following d...
010 REM 020 REM See ../README.md 030 REM 040 REM 050 REM Run as: basic ch-1.bas 060 REM 100 PRINT "0, 0, 0, 2, 0, 5, 0, 6, 3, 7, 0, 15, 0, 9, 8, 14, 0, 20, 0, 21"
SUB gettag (file$, tag, tag$(), album$, art&, artist$, genre$, title$, year$, comment$) tag = 0 TYPE Ext_Header size AS LONG flags AS _UNSIGNED _BYTE extflag AS _UNSIGNED _BYTE END TYPE TYPE Frame_Head id AS STRING * 4 size AS _UNSIGNED LONG flags AS _UNSIGNED INTEGER END TYPE TYPE ID3_Header ...
5 REM SET THE CLOCK POINTER TO SECONDS 10 OUT 97,0 20 REM SEC 30 OUT 96,0 40 REM MIN 50 OUT 96,51 60 REM HOUR 70 OUT 96,10 80 REM DAY 90 OUT 96,01 100 REM MON 110 OUT 96,11 120 REM YR_LO 130 OUT 96,227 140 REM YR_HI 150 OUT 96,7 160 GOTO 600 200 OUT 97,0 210 REM SEC 220 PRINT "SEC:";INP(96) 230 REM MIN 240 PRINT "MIN:"...
Attribute VB_Name = "mPSAPI" 'http://www.vbaccelerator.com/home/VB/Tips/Getting_Process_Information_Using_PSAPI/VB_PSAPI_Demonstration.asp Option Explicit 'typedef struct _MODULEINFO { LPVOID lpBaseOfDll; DWORD SizeOfImage; ' LPVOID EntryPoint;} MODULEINFO, *LPMODULEINFO; Type MODULEINFO lpBaseOfDLL As Lon...
CLS READ side INPUT "SIDE=", s PRINT a = s * s PRINT "Area", a DATA END
5 REM cycle through artifacted tile patterns 10 GR.8:CO.1 20 FOR X = 1 TO 279 STEP 2 30 PLOT X*1.1,0 40 DR. X,159 50 NEXT X 60 POKE 709,255*RND(0) 70 F = PEEK(709) 80 ?F,PEEK(710) 85 D = SQR(F^3)^1.5 90 GOTO 60
#6 PRINT 1 + 5
1 REM Sergei Morozov, 2019 2 REM github:morozov/pacman 3 REM __LOADER__ 10 BORDER 0: PAPER 0: INK 0: CLEAR 20 RANDOMIZE USR (PEEK 23635+256*PEEK 23636+58)
10 input "size of board";n 20 dim q(n) 30 for j=1 to n: q(j)=0: next: for j=1 to n 40 r=1+int(rnd(1)*n): if q(r)>0 goto 40 50 q(r)=j: next 100 for j=1 to n-1 110 for k=j+1 to n 120 if abs(q(j)-q(k)) <> k-j then next: next: goto 200 130 r=1+int(rnd(1)*n) 140 if r=j or r=k goto 130 150 temp=q(r): q(r)=q(k): q(k...
Attribute VB_Name = "MOD_Updates" Option Explicit ' This variable will be used to set the Lowest Version acceptable. ' If the current running version is not >= to this version we need to force the update. ' Note: we should eventually get this value from the cloud. (default is 6.0.196) Public mstrMinVersion_MCS As...
name$ = "JT View" version$ = "2.0" exename$ = "JTVIEW" ON ERROR GOTO Handler h = 1 lines = -1 IF INSTR(UCASE$(COMMAND$), "/?") > 0 THEN GOTO helper IF INSTR(UCASE$(COMMAND$), "/L:") > 0 THEN GOTO setlines IF COMMAND$ > "" THEN where$ = UCASE$(COMMAND$): GOTO opener helper: PRINT PRINT name$ + " " + version$ ...
'_|_|_| TESTDISK.BAS '_|_|_| This program demonstrates testing disk ready condition. '_|_|_| Tested with CD ROM, floppy, IDE fixed disk. '_|_|_| Tested under DOS 5.0, WIN'95, DOS 7 (WIN'95 DOS). '_|_|_| No warrantee or guarantee is given or implied. '_|_|_| Released PUBLIC DOMAIN by Kurt Kuzba. (1...
Version =20 VersionRequired =20 Begin Form DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =2 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =11573 DatasheetFontHeight =11 ItemSuffix =12 Right =14325 Bottom =11535 D...
1 REM The Logistic Equation 2 REM Programming elements included here were developed in background 3 REM research for Patrick Grim, Gary Mar and Paul St. Denis, THE 4 REM PHILOSOPHICAL COMPUTER: EXPLORATORY ESSAYS IN PHILOSOPHICAL 5 REM COMPUTER MODELING, Bradford Books/MIT Press. You are free to use 6 REM and adapt th...
10 PRINT "PROGRAM FILE 204: ERROR - PRINT-STATEMENTS CONTAINING" 15 PRINT " LOWERCASE CHARACTERS." 20 PRINT " ANSI STANDARD 3.2, 3.4, 12.2" 30 PRINT 40 PRINT "SECTION 204.1: ERROR - PRINT-STATEMENTS CONTAINING" 45 PRINT " LOWERCASE CHARACTERS." 50 PRINT 60 PRINT "THIS PROGRAM TESTS TO SEE IF THE PROCES...
10 PRINT TAB(30);"GUNNER" 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 30 PRINT:PRINT:PRINT 130 PRINT "YOU ARE THE OFFICER-IN-CHARGE, GIVING ORDERS TO A GUN" 140 PRINT "CREW, TELLING THEM THE DEGREES OF ELEVATION YOU ESTIMATE" 150 PRINT "WILL PLACE A PROJECTILE ON TARGET. A HIT WITHIN 100 YARDS" 160 P...
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 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 PRINT "TEST TABLES" 20 OPTION BASE 0 30 DIM A(10),B(11,12) 40 READ A0,A(A0),B(A0,A(A0)) 50 REM EXPECTING 60 PRINT A0,A(A0),B(A0,A(A0)) 70 DATA 1,2,3 80 END
CLS PRINT "PROGRAM: Chose which number times tables to display" PRINT INPUT "Which number times tables"; tablesNo% PRINT FOR timesNo% = 1 TO 12 PRINT timesNo%; " X "; tablesNo%; " = "; timesNo% * tablesNo% NEXT END '*** Program output when run by pressing function key: [F5]... 'PROGRAM: Chose which number times t...
5 GOTO10010 10 DATAx[cm“],0.000001x[m“],X[m“]=1e-6*x[cm“],10,20 20 DATAx[cm“],0.0610237x[in“],X[in“]=.0610237*x[cm“],10,30 30 DATAx[cm“],0.0000353147x[ft“],X[ft“]=3.53147E-5*x[cm“],20,40 40 DATAx[cm“],0.001x[l],X[l]=.001*x[cm“],30,50 50 DATAx[cm“],0.000264172x[gal(US)],X[gal(US)]=2.64172E-4*x[cm“],40,60 60 DATAx[cm“],0...
' 3D Bouncing Balls Using _MAPTRIANGLE by QWERKEY (Richard Notley) 21/04/18 ' Cyperium method for sphere image CONST True = -1`, False = 0` _TITLE "3D Bouncing Balls" RANDOMIZE (TIMER) CONST NoBalls%% = 10, Uscreen% = 1000, Vscreen% = 800, NoPhis%% = 16, NoAlphas%% = 6, XBright! = 0.5 CONST Pi! = 4 * ATN(1), Rad1%% ...
10 Let A = 2 20 Let B = 3 30 Let c = 4 35 leT D = "hey look ma I made it" 40 PrINT a * (B + C) 50 ENd
CLS PRINT "This program is just made by using PRINT INPUT GOTO IF ELSE" PRINT "" PRINT "" PRINT "" PRINT "" PRINT "" PRINT "Features of this program" PRINT "This is all in one program" PRINT "" PRINT "You can even change the typed number if they are wrong" PRINT "The program will be repeated until you stop it" PRINT ""...
Version =20 VersionRequired =20 Begin Form AllowFilters = NotDefault PopUp = NotDefault Modal = NotDefault RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault ControlBox = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault AllowDeletions = N...
100 CLEAR 100,&HA5B6:DEFINT A-Z:DIM I(1) 110 BLOAD"bgm.bin" 120 GOSUB 270:V=0:ST=0 130 PRINT"RET:Load BGM data":PRINT"0:Start BGM":PRINT"1:Stop BGM" 140 PRINT"+/- :Volume":PRINT"ESC:End" 150 PRINT"*:Pause":PRINT"/:Continue" 160 A$=INPUT$(1) 170 IF A$=CHR$(13) THEN GOSUB 350:GOSUB 290 180 IF A$="0" AND ST<>0 THE...
CLS PRINT "what was the bullets mass?" INPUT mb PRINT "what was the targets mass?" INPUT mt PRINT "what was the length of the target?" INPU...
1 %TITLE "Product Master Files Maintenance" %SBTTL "BM_MAST_PRODUCT" %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 w...
5 REM SIEVE OF ERATOSTHENES 10 INPUT "ENTER NUMBER TO SEARCH TO " L 15 IF L > 3500 GOTO 140 20 FOR I=0 TO L: @(I)=0: NEXT I 25 GOSUB 165 28 PR."STARTING CALCULATION" 30 FOR N = 2 TO X 40 IF @(N) <> 0 GOTO 80 50 FOR K = N*N TO L STEP N 60 @(K) = 1 70 NEXT K 80 NEXT N 85 PR."DONE" 90 REM DISPLAY THE PRIMES 100 FOR N = 2 ...
0010 LET C=14 0020 DIM C$(50) 0030 DIM A$(50),B$(50) 0040 PRINT "INPUT THE WORD IN SECRET" 0050 INPUT A$ 0060 PRINT "\PAPER WILL CLEAR MACHINE. THEN TELETYPE WILL PAUSE FOR" 0070 PRINT "APPROXIMATELY 10 SECONDS." 0080 PRINT "\\\\\\\\\\\\\" 0090 FOR A=1 TO LEN(A$) 0100 LET C$=C$+"-" 0110 NEXT A 0120 FOR A=1 TO 7500 0...
10 REM This is a test 20 FILES "input.txt" 30 INPUT #1;A$,B$,C$,D$ 40 PRINT A$;B$;C$;D$ 50 INPUT #1;A,B$,C,D$ 60 PRINT A;B$;C;D$ 90 STOP 99 END
10 REM some text 20 INPUT A 30 INPUT B 40 LET C = A - B 50 IF C < 1 GOTO 20 60 OUTPUT C 70 END
10 TI$="000000":FORI=1TO1000:A=SQR(I):NEXT:PRINTTI,A
10 sys 58692 20 for y=0 to 12 step 2 30 x=xw-1 40 poke 1024+(y)*40+x,1 50 if x>21-xw then goto 90 60 poke 1024+(x+3)*40+y,3 80 poke 1024+(x+2)*40+(39-y),4 90 x=x+1: if x<40-xw then poke 1024+(24-y)*40+x,2:goto 40 110 xw=xw+2 120 next y
CLS LOCATE 12, 36 COLOR 9 PRINT "BATTLESHIP" COLOR 4 LOCATE 13, 35 PRINT STRING$(12, CHR$(205)) LOCATE 11, 35 PRINT STRING$(12, CHR$(205)) LOCATE 11, 34 PRINT CHR$(201) LOCATE 11, 47 PRINT CHR$(187) LOCATE 12, 34 PRINT CHR$(186) LOCATE 12, 47 PRINT CHR$(186) LOCATE 13, 34 PRINT CHR$(200) LOCATE 13, 47 PRINT CHR$(188) '...
100 ' TAB sample 110 FOR DEG=0 TO 180 STEP 20 120 RAD=DEG/180*3.14159 130 PRINT "DEG =";DEG; 140 PRINT TAB(15)"SIN(DEG) =";CSNG(SIN(RAD)); 150 PRINT TAB(40)"COS(DEG) =";CSNG(COS(RAD)) 160 NEXT DEG 170 END