text stringlengths 7 5.36M |
|---|
DECLARE FUNCTION GOLDEN! (AX!, BX!, CX!, DUM!, TOL!, XMIN!)
DECLARE FUNCTION FUNC! (X!)
FUNCTION GOLDEN (AX, BX, CX, DUM, TOL, XMIN)
R = .61803399#
C = .38196602#
X0 = AX
X3 = CX
IF ABS(CX - BX) > ABS(BX - AX) THEN
X1 = BX
X2 = BX + C * (CX - BX)
ELSE
X2 = BX
X1 = BX - C * (BX - AX)
END IF
F1 = ... |
DECLARE SUB stopf ()
DECLARE SUB sec (d!)
DECLARE SUB inc (j!)
SCREEN 12
CLS
r = 20
FOR i = 1 TO 10
CIRCLE (320, 240), r, 4
r = r + 20
NEXT
COLOR 4
FOR k = 40 TO 360 STEP 40
PSET (320, 240)
DRAW "bu20" + "u180ta" + STR$(k)
FOR j = 1 TO 500
NEXT
NEXT
SLEEP
10
PAINT (340, 260), 1, 4
CALL stopf
20
PAINT (340, 245), 3, 4... |
100 N$=""
120 PRINT "DATAFILE";
140 INPUT K$
160 FILE #1,K$
180 REM COMPANY NAME
200 READ #1,L$
220 REM FINAL YR,QTR
240 READ #1,Y2,Q2
250 Q1=4*(Y2-1)+Q2
260 DIM A(110,5)
280 DIM B(100,20)
300 DIM C(121)
320 DIM P(100,5)
340 DIM K(2,25)
360 DIM H(2,55)
380 DIM T(200,1)
400 DIM M(200,10)
420 DIM N (200,... |
#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 ... |
' ########################################################################################
' SAPI example
' Creates an instance of the speech engine and calls the Speak method.
' ########################################################################################
#COMPILE EXE
#DIM ALL
#INCLUDE ONCE "SAPI.INC"
' =... |
Attribute VB_Name = "modHelpFuncs"
Option Compare Database
Option Explicit
Private Const THIS_NAME As String = "modHelpFuncs"
'VGC 11/06/2011: CHANGES!
'Questions:
'1. We have a commercially sold Microsoft Access application that comes with a PDF User Manual.
' We'd like to show and reference this Help f... |
# MODFLOW2000 Basic Package
#MODFLOW Data Set Created by Groundwater Vistas
#
SHOWPROGRESS
0 1(25I3) -1 IBOUND Layer 1
0 1(25I3) -1 IBOUND Layer 2
0 1(25I3) -1 IBOUND Layer 3
9.9900e+0... |
1 %TITLE "Accounts Payable Closing Program"
%SBTTL "AR_SPEC_KILLOLDOPEN"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 2009 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... |
1 %TITLE "Control Line File Maintenance"
%SBTTL "AP_MAIN_CONTROL_ACCT"
%IDENT "V3.6a Calico"
FUNCTION LONG AP_MAIN_CONTROL_ACCT(CDD_WINDOW_CDD SMG_WINDOW, &
LONG MOPTION, LONG MLOOP, LONG MFLAG, STRING MVALUE)
!
! COPYRIGHT (C) 1995 BY
!
! Software Solutions, Inc.
! Idaho Falls, Idaho.
!
! This software 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 ... |
'BFI.BAS -- BF program emulator
'slower than BFI2, gearing towards ASM emu
DEFINT A-Z
DIM M(29999): P = 0: IP = 0
DIM G(1000): G = 0
LOCATE , , 1', 0, 31
'get program data
F$ = COMMAND$
F$ = "C:\BF\FACTOR.BF"
IF F$ = "" THEN INPUT "Enter filename of BF source [.BF]: ", F$
F = INSTR(F$, "."): IF F = 0 THEN F$ = F$ + ".... |
10 REM COMPUTE WONDROUS NUMBERS (FROM HOFSTADTER)
20 READ A, A0
30 LET B = A + A0
40 PRINT "COMPUTING WONDEROUS NUMBERS FROM";A;"TO";B
50 PRINT
100 FOR N = A TO B
110 LET N0 = N
120 GOSUB 400
130 NEXT N
140 STOP
400 REM PRINT INFO FOR ONE NUMBER
410 PRINT N0;":";
420 IF N0 = 1 THEN 490
430 IF MOD(N0,2) = 0 THEN 460
440... |
5 defint a-z
10 DIM plist.x(1000)
20 DIM plist.y(1000)
30 screen 1,320,200,4,1
35 WINDOW 2,"FLOOD",(1,1)-(290,170),15,1
40 LINE (0, 0)-(279, 169), 15, B
50 LINE (100, 100)-(150, 150), 15, B
60 LINE (11, 11)-(120, 120), 15, B
70 LINE (200, 60)-(260, 120), 15, B
80 LINE (220, 20)-(240, 48), 15, B
90 LINE (170, 125)-(280... |
0 REM ************************
1 REM * - CCESOFT - *
2 REM *OTTO LONGO SERNATINGER*
3 REM * VERSAO 1.1 05/85 *
4 REM ************************
5 REM *CELSIUS-FARENH-CELSIUS*
6 REM ************************
9 HOME
10 PRINT TAB( 11)"- CCESOFT -": PRINT
80 PRINT TAB( 8)"ESTE PROGRAMA FAZ"... |
10 POKE 53281,1
20 POKE 53282,2
30 POKE 53283,5
40 POKE 53284,6
50 POKE 53265,PEEK(53265) OR 64
60 PRINT "ABC abc ";CHR$(18);"ABC abc"
70 |
Version =20
VersionRequired =20
Begin Form
AutoCenter = NotDefault
AllowDesignChanges = NotDefault
DefaultView =2
TabularFamily =105
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =7920
DatasheetFontHeight =10
ItemSuffix =25
Left =345
Top... |
1 %TITLE "Save Current Defaults in Set File"
%SBTTL "WRIT_DEFAULT"
%IDENT "V3.6a Calico"
SUB WRIT_DEFAULT(CDD_WINDOW_CDD SMG_WINDOW)
!
! 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 accordance with ... |
@ERASE
0 REM this is the common code for both monitor
0 REM and interactive mode
0 REM DOCS NEEDS UPDATING
0 REM code structure:
0 REM 1/19 variables
0 REM 20/39 user code jump table
0 REM 40 automatic scrolling display
0 REM @INIT 60
0 REM @IDLE 105
0 REM @SLAVE 130
0 REM @SENSOR 135
0 REM inquiry results fr... |
1 %TITLE "Asset Depreciation History File"
%SBTTL "AD_MAIN_HISTORY"
%IDENT "V3.6a Calico"
FUNCTION LONG AD_MAIN_HISTORY(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 furn... |
REM Nuclear sub adventure
6 DIMD$(11),O$(41),P(3):GOSUB970:FORI=1TO11:READD$(I):NEXT
7 FORI=0TO41:READO$(I):NEXT:W=23:IFPEEK(57088)<127THENW=63
8 GOSUB175:S=5:L=1:GOSUB715:FORI=0TO32:PRINT:NEXT:GOTO225
9 IFFTHENT=T+.5:IFT=100THENPRINT:GOSUB750:GOTO925
10 IFFTHENIFT/10=INT(T/10)THENPRINT:GOSUB750:GOSUB740
15 IFUA... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =11460
DatasheetFontHeight =11
... |
10 input "ingrese un numero: ";n
12 binario$ = ""
15 do while n<>0
20 resto = n mod 2
25 n = (int (n / 2))
30 if resto=0 then goto 70 else goto 90 end if
40 loop
55 goto 150
70 binario$ = "0" + binario$
80 goto 40
90 binario$ = "1" + binario$
100 goto 40
150 print binario$
|
100 ' LIST sample
110 N=1
120 ' start
130 PRINT N
140 N=N+1
150 IF N<10 THEN 140
160 END
|
100 ON ERROR GOTO 1000
110 ERROR 2
120 PRINT "KKK":END
1000 RESUME
|
'Tugas 1 QBASIC Universitas Gunadarma 2018/2019 -msf
DIM masukan AS INTEGER
DIM hitung AS INTEGER
1 CLS
LOCATE 5, 20
PRINT "====== Menu ====="
LOCATE 6, 20
PRINT "1.Biodata"
LOCATE 7, 20
PRINT "2.Luas Segitiga"
LOCATE 8, 20
PRINT "3.Deret"
LOCATE 9, 20
PRINT "4.Grade"
LOCATE 10, 20
PRINT "5.Exit"
LO... |
Operation =1
Option =2
Begin InputTables
Name ="tbl_Locations"
Name ="tbl_Events"
Name ="tbl_Quadrat_Transect"
Name ="tbl_Quadrat"
Name ="tbl_Quadrat_Species"
Name ="tlu_NCPN_Plants"
End
Begin OutputColumns
Expression ="tbl_Locations.Unit_Code"
Expression ="tbl_Locations.Plot_ID"
Ex... |
10 :REM'FINANCE -Financial Calculators - 30 DEC 2000 rev.
20 CLS:KEY OFF
30 PROG$="finance"
40 IF EX$=""THEN EX$="EXIT"
50 COMMON EX$,PROG$
60 COLOR 7,0,1
70 DIM A$(7),B$(7),C$(7)
80 UL$=STRING$(80,205)
90 FOR N=1 TO 7:READ A$(N),B$(N),C$(N):NEXT N
100 :REM'
110 :REM'.....start
120 CLS
130 COLOR 15,2
140 PRINT " FINANC... |
DECLARE SUB SetModelBaseColor (Model() AS ANY)
'''3d rotation code supplement using matrices
'''Mark Feldman for that matrix doc
'''Biskbart for the torus generator
'''Hugo Elias for the WuPixel tute
'''Rel.betterwebber.com
DECLARE SUB WuPixelGrad16 (x!, y!, col%)
DECLARE SUB AF.LoadPalPp256 (File$)
DECLARE SUB FindC... |
1 %TITLE "GL ACCOUNT MASK MAINTENANCE"
%SBTTL "GL_MAST_OBJECT"
%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
!... |
100 MODE 2:INK 0,26:INK 1,0:BORDER 26
110 LOCATE 1,10:X$="The Journey of Marco Polo, 1271":GOSUB 3760
120 LOCATE 1,13:X$="(c) David H. Ahl, 1986":GOSUB 3760
125 LOCATE 1,16:X$="Converted to CPC 2017 by SRS":GOSUB 3760
130 LOCATE 1,23:GOSUB 3720:CLS
140 DIM EP(20)
150 JL=300:C=2:W=30:M=5:FP=5:BSK=99:'Initial quant... |
PRINT "This program demostrates nested FOR loops."
FOR X = 1 TO 100
FOR Y = 1 TO 10
PRINT X; Y; X*Y
NEXT
NEXT
|
5 HOME
10 FOR I = 1 TO 6
20 READ A$
30 PRINT A$
40 PRINT
50 IF I = 4 AND PEEK (33) = 40 THEN PRINT "press a key": WAIT - 16384,128: PRINT
60 NEXT
100 READ A$
110 PRINT A$
7000 END
10000 DATA "DOS3.3.5 is copyright 1987 by Arjay Enterprises"
10020 DATA " This DOS will allow... |
10 'COPYRIGHT(C)1992 T&D S.S.
20 'BY JEFF STEINPORT
30 CLS:CLEAR 10000
40 OPEN"D",#1,"REMEMBER",192
50 L=0:M=0:N=0:O=0:P=0
60 ON ! GOTO 560
70 PRINT"TO END PUSH BREAK"
80 PRINT" FILE YOUR FRIENDS"
90 GOTO570
100 CLS
110 LINE INPUT"NAME: ";S$:IF L=1 THEN 190
120 LINE INPUT"PHONE: ";N$:IF M=2 THEN 190
130 LINE INP... |
10 print"enter list of marks"
20 print"type -99 to end the list"
30 input n
40 if n=-99 then print"average mark = ";t/c:end
50 let t=t+n
60 let c=c+1
70 goto 30
|
REM SCRAPE.BAS FOR PC-G850
REM OBJECTIVE :黒いマルまで移動してください。
REM HOW TO PLAY :Q:加速 A:減速 左右キー:方向転換
REM DESCRIPTION :画面色が反転したままの場合は一度電源を入れなおして下さい
100 CLEAR:RANDOMIZE
110 R=1,S=0,MX=128,MY=40
120 DIM B$(0):DIM GX(6):DIM GY(6)
130 *LD1
140 FOR I=0 TO 6:READ GX(I):NEXT
150 FOR I=0 TO 6:READ GY(I):NEXT
160 *INIT
170 CLS:... |
10 BLOAD"LOADER.BIN",R |
REM Exemplo calculadora
10 INPUT "Digite o primeiro valor:";a
20 INPUT "Digite o segundo valor:";b
30 INPUT "Digite a operação (+ - * /):";op
31 LET a = VAL(a)
32 LET b = VAL(b)
40 IF op = "+" THEN GOTO 50 ELSE IF op = "-" THEN GOTO 60 ELSE IF op = "*" THEN GOTO 70 ELSE IF op = "/" THEN GOTO 80 ELSE GOTO 90
50 PRIN... |
\*****************************************************************************
\*****************************************************************************
\***
\*** FILE HANDLING FUNCTIONS SOURCE CODE
\***
\*** FILE TYPE: KEYED
\***
\*** REFERENCE: NLINEFUN.BAS
... |
10 COLOR 1,15,8:SCREEN 2,3
20 A$="Мы":B$="изучаем":C$="язык":D$="MSX BASIC"
30 SPRITE$(1)=A$:SPRITE$(2)=B$:SPRITE$(3)=C$:SPRITE$(4)=D$
40 FOR I=1 TO 4:PUT SPRITE 2,(90,90),11,I'Обратите внимание на то, что номер спрайта изменяется в цикле, а "экранный" номер постоянен!
50 FOR U=1 TO 200:NEXT:NEXT:GOTO 40
|
5 print"initial:";fre(0):f$="12345678901234"
10 dimz$(50):dimu$(50):forx=0to1000:ti$="000000":for i=1to50
20 a$=left$(f$,rnd(0)*10):b$=left$(f$,rnd(0)*10)
21 c$=left$(f$,rnd(0)*10):d$=left$(f$,rnd(0)*10)
25 e$="uuu"+a$+f$:u$(i)=z$(i)+"kkkk":z$(i)=e$+b$
26 print "e:";e$:print "u:";u$(i):print "z:";z$(i):print "f:";f$
2... |
Version =20
VersionRequired =20
Begin Form
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =2
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =11558
DatasheetFontHeight =11
ItemSuffix =6
Right =13515
Bottom =7605
Dat... |
10 CLS
20 V=VAL(MID$(TIME$,4,2))*VAL(RIGHT$(TIME$,2))
30 RANDOMIZE V
40 T=0 : AN=0
50 INPUT"How many digits do you want to guess (>0)";N
60 IF N<=0 THEN 50
70 DIM N(N),M(N)
80 FOR I=1 TO N
90 N(I)=INT(RND*10)
100 FOR J=SGN(I-1) TO I-1 : IF N(I)=N(J) THEN 90 : NEXT J
110 NEXT I
120 '__________ BEGIN _____... |
Version =20
VersionRequired =20
Begin Form
PopUp = NotDefault
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =19... |
10 REM {+ ORIC 2014-15 + TYRANN 3 + MAXIMUS +}
20 TEXT:LOAD "FONT.BIN":PAPER0:INK6
30 POKE 48035,0:POKE#26A,PEEK(#26A)AND254
40 DIM SN(6,9)
60 GOSUB 50000:GOSUB 48000:PING:CG=0
80 X=2:Y=2:S=2
110 'FORI=1TO9:FORJ=1TO4:CL(I,J)=1:NEXTJ,I'Toutes les clés
120 'FORI=1TO6:PV(I)=ET(I):NEXTI
135 'FORP=1TO6:FORI=1TO9:NI(... |
dbMemo "SQL" ="SELECT DISTINCT tbl_Target_List.Park_Code AS Park, tbl_Target_List.Target_Year A"
"S TgtYear, tbl_Target_Species.Master_Plant_Code_FK, tlu_NCPN_Plants.LU_Code, tbl"
"_Target_Species.Species_Name, tbl_Target_Species.Priority, tbl_Target_Species.Tr"
"ansect_Only, tbl_Target_Species.Target_Area... |
10 SCREEN 1
20 FOR I=0 TO 15
30 READ R:VPOKE I,R
40 NEXT I
50 VPOKE &H2000,&H68
60 FOR I=0 TO 31
70 VPOKE &H1800+i,i MOD 2:VPOKE &H1820+i,(i+1) MOD 2
80 VPOKE &H1AC0+i,i MOD 2:VPOKE &H1AE0+i,(i+1) MOD 2
90 NEXT I
99 A=1:B=0
100 IF A=128 THEN A=0:B=1:GOTO 130
110 IF B=128 THEN B=0:A=1:GOTO 130
120 A=A*2:B=B*2
130 F... |
Attribute VB_Name = "mod_Func22"
Option Explicit
Private cn As Object
Private strOwner As String
' 22、會員代號、認證ID、種類(1=查帳務資訊、2=查設備資訊)、起始日期、截止日期
' 日期顯示格式 20060401
' 此支更改為多服務設備與收費資料查詢,XML有回傳 "SERVICETYPE",以供區分分類。
' 分類如下:
' C 表CATV&DSTB
' I 表CM
' P 表CP
' 1. 查詢種類1回傳之 XML
' (客編、單據編號、項次、收費項目名稱、應收日期、應收金額、實收日期、實收金額、實收期數
'... |
-- Test mid$
10 print "ErrorCase startPos == 0 => "; mid$("error",0,2)
|
10 FOR L=1 TO 10:PRINT L;L^3:NEXT L
|
10 SUM = 0
20 N = 0
30 INPUT X
40 IF X = -1 THEN 80
50 SUM = SUM + X
60 N = N + 1
70 GOTO 30
80 PRINT SUM / N
90 END |
Attribute VB_Name = "Infolap"
Public infolapbe%
Public Sub infomutat2(objneve$, rec$, hivashely$)
'--- keresőtábla információ felmutatása
Dim Tbknev As Object
If hivashely$ = "Kereso" Then
Set Tbknev = Kereso
Else
Set Tbknev = Hash
End If
Select Case objneve$
Case "KKFT"
Tbknev.List1.Clear... |
IF usercommand$(runcommands) = "radian" OR usercommand$(runcommands) = "radians" THEN
DO
FOR runcommands2 = 1 TO usercommands
IF usercommand$(runcommands2) = "set" THEN
anglepref = 0
speechoutput$ = "setting angles to radian"
speechprint$ = speecho... |
REM File: .bas
REM Data:
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
5 CLS
10 d = 200
20 br = 100
30 ba = 90
40 PRINT "скажи, какой мяч купиш: красный, голубой или оба"
50 INPUT a$
55 PRINT a$
70 IF a$ = "голубой" THEN 110
80 IF a$ =... |
REDIM healc(100)
REDIM sleepc(100)
REDIM refreshc(100)
REDIM recallc(100)
REDIM furc(100)
REDIM blucurs(100)
REDIM bluredo(100)
REDIM bluredo2(100)
REDIM bluredo3(100)
REDIM item(200)
REDIM scalpc(200)
REDIM sword1c(100)
REDIM sword2c(100)
REDIM sword3c(100)
REDIM sword4c(100)
REDIM staff1c(100)
REDIM d... |
10 INPUT N%
20 LET SSIZ% = SQR(N%) + 1
30 DIM SIEVE(SSIZ%)
40 GOSUB 120
50 GOSUB 170
60 LET NP% = PSIZ%
70 FOR START% = SSIZ% TO N% STEP SSIZ%
80 GOSUB 340
90 NEXT START%
100 PRINT : PRINT "PI("; N%; ") = "; NP%
110 GOTO 500
120 'initialize sieve segment
130 FOR I% = 1 TO SSIZ%
140 SIEVE(I%) = 1
150 NEXT ... |
10 A$="BASIC"
20 B$=LEFT$(A$, 3)
30 PRINT B$
|
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... |
DIM NUM$(2)
DIM BOX(2, 100)
DIM CALC(100)
PRINT 3.8
PRINT
INPUT "ENTER BASE: ", BAS
INPUT "ENTER FIRST INTEGER: ", NUM$(1)
INPUT "ENTER SECOND INTEGER: ", NUM$(2)
LEN1 = LEN(NUM$(1))
LEN2 = LEN(NUM$(2))
IF LEN2 > LEN1 THEN
T = LEN2
ELSEIF LEN1 > LEN2 THEN
T = LEN1
ELSE
T = LEN1
END IF
... |
'Verbesserungswrdiges Programm teilt eine Zahl durch eine andere,
'erkennt Periode
DIM q%(15000)
SCREEN 12
INPUT " Welche Zahl soll dividiert werden "; x%
INPUT " Durch welche Zahl soll dividiert werden "; y%
a$ = STR$((x% - (x% MOD y%)) / y%) + "."
x% = (x% MOD y%) * 10
PRINT : PRINT a$;
DO
c = c ... |
CLS
INPUT s$
s$ = s$ + " "
k$ = "": nm = 0: r = 0
FOR n = 1 TO LEN(s$)
a$ = MID$(s$, n, 1)
k$ = k$ + a$
IF a$ = " " THEN
IF nm = 0 THEN
z$ = k$: nm = 1
ELSE
IF k$ <> z$ THEN
kk$ = ""
FOR m = 1 TO LEN(k$) - 1
IF MID$(k$, m, 1) <> MID$(k$, LEN(k$) - 1, 1) THEN kk$ = kk$ + MID$(k$, ... |
1 !
! Dump AP vendor file in to an ascii file
!
! %include %from %cdd "cdd$top.AP.AP_VENDOR"
%include "source:[ap.open]ap_vendor.hb"
map (AP_VENDOR) AP_VENDOR_cdd AP_VENDOR
! fmt% = 132%
fmt% = 0%
def fnformat$(a$, fmtflg%)
select fmtflg%
case 0%
fnformat$ = EDIT$(a$, 132%)
case 132%
fnformat$ = '... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =1095728451
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
AllowEdits = NotDefault
AllowDesignChanges = NotDefault
Default... |
'
' Affichage du répertoire courant
' OMIKRON-BASIC DIR.BAS
'
' Réserver une zone de la mémoire:
Dta%L= MEMORY(44)' für DTA-tampon
Nameptr%L=Dta%L+30' Offset pour le nom de fichier: 30 Bytes
Masque%L= MEMORY("*.*")' Masque ů rechercher
Crlf%L= MEMORY( CHR$(13)+ CHR$(10))' pour saut de ligne
... |
#INCLUDE ONCE "warriors.bi"
DECLARE SUB CenterText (text AS STRING, row AS INTEGER)
DECLARE SUB DrawBox (row AS INTEGER, col AS INTEGER, w AS INTEGER, h AS INTEGER, text AS STRING, textColor AS INTEGER, borderColor AS INTEGER)
DECLARE SUB CenterBox (row AS INTEGER, w AS INTEGER, h AS INTEGER, text AS STRING, textColor... |
SCREEN 12: CLS
DIM gros(200): DIM gros2(200): DIM gros3(200)
DIM invgros(200): DIM invgros2(200): DIM invgros3(200)
DIM nul(200)
OPEN "gros.spr" FOR INPUT AS #1
OPEN "gros2.spr" FOR INPUT AS #2
OPEN "gros3.spr" FOR INPUT AS #3
FOR x = 1 TO 19
FOR y = 1 TO ... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
TabularFamily =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =... |
Version =20
VersionRequired =20
Begin Form
MaxButton = NotDefault
MinButton = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
ScrollBars =2
BorderStyle =3
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
W... |
10 CLS
20 PRINT "SETTING THE DATE AND THE CLOCK"
30 INPUT "DATE ?", D$
40 INPUT "TIME ?", T$
50 DATE$ = D$
60 TIME$ = T$
70 PRINT "DATE", DATE$, "TIME", TIME$
80 END
|
Version =20
VersionRequired =20
PublishOption =1
Checksum =1170309463
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
AllowDesignChanges = NotDefault
ScrollBars =2
PictureAlignment =2
DatasheetGridlinesBehavio... |
Attribute VB_Name = "mdlGui"
'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
' [Enable Group] - Enable\Disable Group Base On GrpName Tag
'
'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
Public Sub EnableGroup(GrpName As String, Optional Enable... |
10 GOSUB 10000 'Inicializacin
1' BLUCLE PRINCIPAL
100 ' lee el teclado y posiciona al personaje
110 c=c+1
120 |STARS, 0, 7, 1, 1, 0
130 IF INKEY(27) THEN GOTO 150
140 x=x+1:GOTO 210
150 IF INKEY(34) THEN GOTO 210
160 x=x-1
'170 IF INKEY(67) THEN GOTO 190
'180 y=y-2:GOTO 210
'190 IF INKEY(69) THEN GOTO 2... |
DECLARE FUNCTION GAMMQ! (A!, X!)
SUB CHSONE (BINS(), EBINS(), NBINS, KNSTRN, DF, CHSQ, PROB)
DF = NBINS - 1 - KNSTRN
CHSQ = 0!
FOR J = 1 TO NBINS
IF EBINS(J) <= 0! THEN PRINT "bad expected number": EXIT SUB
CHSQ = CHSQ + (BINS(J) - EBINS(J)) ^ 2 / EBINS(J)
NEXT J
PROB = GAMMQ(.5 * DF, .5 * CHSQ)
END SUB
... |
0 rem (c) 2017 !laamella gad!
1 rem written for dan warren
2 rem thank you for playing all that crap
9 poke53280,0:poke53281,0
10 printchr$(147):print" ultra wumpus"
20 print"::::::::::::::::::::::::::::::::::::::::"
30 print"wumpus is a hunting game
40 print"you go catch the beast called wumpus
50 print"... |
CLS
10 COLOR 2
20 PRINT " X X "
30 PRINT " X "
40 PRINT " X X "
50 PRINT " "
SLEEP 1
60 CLS
70 COLOR 3
100 PRINT " X X X X ... |
1
SCREEN 0
CLS
PRINT
PRINT
COLOR 2
PRINT " Data Entry:"
PRINT " -----------"
PRINT
INPUT "Name: ", n$
IF n$ = "" THEN 1
OPEN "points.dat" FOR INPUT AS #1
INPUT #1, n
CLOSE
IF n < 25 AND n > 15 THEN OPEN "first.plc" FOR OUTPUT AS #1
IF n < 16 AND... |
1 %TITLE "PR Tax Profile Maintenance"
%SBTTL "PR_MAIN_TAX_PROFILE_F"
%IDENT "V3.6a Calico"
FUNCTION LONG PR_MAIN_TAX_PROFILE_F(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.
!
! Th... |
Version =20
VersionRequired =20
PublishOption =1
Modal = NotDefault
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridY =10
... |
CLS
DEFINT A-Z
FOR i = 1 TO 8
FOR j = 1 TO 3
READ cps(i, j)
NEXT j
NEXT i
FOR k = 1 TO 8
READ protocol$(k)
NEXT k
COLOR 11: PRINT CHR$(201); STRING$(78, CHR$(205)); CHR$(187)
PRINT CHR$(186); STRING$(78, " "); CHR$(186)
PRINT CHR$(186); STRING$(78, " "); CHR$(186)
PRINT CHR$(... |
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... |
CLS
PRINT " ;:::::::::::, '::::' '::::::, ;:::::::::::, "
PRINT ",:::: :::::: :: ,:::: "
PRINT "':::: ::' ':: :: ':::: "
PRINT "':::: :: :: :: ':::: "
PRINT "'... |
100 ' ASC sample
110 A$=INPUT$(1)
120 IF ASC(A$)=13 THEN END
130 PRINT A$;" É ·¬×¸À º°ÄÞ Ê ";ASC(A$);" ÃÞ½¡"
140 GOTO 110
|
'Option Explicit
Private Declare Function GetSystemDirectory Lib "kernel32" Alias _
"GetSystemDirectoryA" (ByVal lpBuffer As String, _
ByVal nSize As Long) As Long
Public Declare Function AVIFileInfo Lib "avifil32.dll" _
(ByVal p... |
10 PRINT TAB(15);"LIFE"
20 REM TAB(15);"CREATIVE COMPUTING"
30 REM "MORRISTOWN, NEW JERSEY"
40 PRINT: PRINT
50 PRINT "ENTER YOUR PATTERN:"
60 X1=1: Y1=1: X2=14: Y2=47
70 DIM A(24,70),B$(24)
80 G=0
90 P=0
100 I9=0
110 C=1
120 INPUT B$(C)
130 IF B$(C)="DONE" THEN B$(C)="": GOTO 180
140 IF LEFT$(B$(C),1)<>"." GOTO 160
150... |
10 '**********************************
20 '* *
30 '* DRAWING A PICTURE *
40 '* *
50 '* J.W.L *
60 '* *
70 '**********************************
80 KEY OFF:CLS
90 WINDOW (-360,-173)-(3... |
60 input n
70 arr = 0.8
80 svct = 1
90 dim q(100)
100 customers = 1000000
110 for i = 1 to customers
120 ia = -(1/arr)*log(rnd(1))
130 t = t+ia
140 w = w+x-ia
150 if w < 0 then w = 0
160 if w > 0 then c = c+1
170 x = -svct*log(rnd(1))
180 sx = sx+x
190 sw = sw+w
200 next i
210 print sx,c,sw
220 print sx/t,c/customers,s... |
10 VH = $9F22
20 VM = $9F21
30 VL = $9F20
40 VD = $9F23
50 C = 0
60 GOSUB 1000
100 POKE VH, $1F
110 POKE VM, $10
120 POKE VL, $00
140 FOR X = 0 TO 31
150 C1 = PEEK($A200 +X)
170 POKE VD, C1
200 NEXT X
210 GOSUB 3000
230 GOTO 100
1000 POKE $A000, $4
1010 POKE $A001, $E
1020 POKE $A002, $3
1030 POKE $A0... |
10 FOR I=1 TO 96:CLS:PRINT"Номер ноты";I:PLAY"N=I;"
20 FOR D=1 TO 300:NEXTD:NEXTI
|
' borrar pedidos
DEFINT A-Z
DECLARE SUB Espera ()
DECLARE SUB Center (row, text$)
DECLARE SUB Box (Row1%, Col1%, Row2%, Col%)
DECLARE SUB Termometro (va%, total%, edo%, text$, fila%, columna%)
DECLARE SUB BorraPedidos ()
DECLARE SUB ConfigProv ()
DECLARE SUB LeeEstado ()
DECLARE SUB SalvaEstado ()
DECLARE... |
100 GOSUB 500
110 PRINT "B"
120 END
500 PRINT "A"
510 RETURN
|
!--------------------------------------------------
!- Friday, May 12, 2017 11:13:44 PM
!- Import of :
!- c:\src\zelch64\bak\prg.monster.prg
!- Commodore 64
!--------------------------------------------------
8000 SYS51983:CLOSE2:PRINT"initializing!":PRINT#8,"s0:{pound}delete":FORI=8TO7+D0
8010 PRINT#I,"s0:msg"... |
LET t = TIME
LET betrag = 200
FOR hundreds = f(100) TO 0 STEP -1
FOR fifties = f(50) TO 0 STEP -1
FOR twenties = f(20) TO 0 STEP -1
FOR tenner = f(10) TO 0 STEP -1
FOR fiver = f(5) TO 0 STEP -1
FOR twosome = f(2) TO 0 STEP -1
FOR singles = f(1) TO 0 ... |
FOR i = 1 TO 4
PRINT "I AM LOOPING!"
NEXT i
PRINT " "
PRINT " "
FOR a = 1 TO 5
PRINT "THIS IS A LOOP NUMBER ";a
NEXT a
PRINT " "
PRINT " "
FOR J = 0 TO 12 STEP 3
PRINT "**** ";J
NEXT J
PRINT " "
PRINT " "
FOR j = 0 TO 9 STEP 1.5
PRINT "WOW! ";j
NEXT j
|
0 POKE55,255:POKE56,47:PRINT"{clear}":POKE53281,0:POKE53280,0:V=53248:CO=54272
1 SM=0:FORJ=1TO30:I=RND(1)*1000+55296:POKEI,1::POKEI-CO,46:NEXT
2 POKEV+21,31:POKE2040,192:POKE2041,193:POKE2042,194:POKE2043,195:POKE2044,196
3 POKEV+39,8:POKEV+40,3:POKEV+41,7:POKEV+42,10:POKEV+43,5
4 FORI=0TO318:READQ:POKE12288+I,Q:NEXT:P... |
10 ON ERROR GOTO 150
20 INPUT X
30 IF X<0 THEN ERROR 250
40 PRINT SQR(X)
50 END
150 IF ERR=250 THEN PRINT"Аргумент меньше нуля"
160 RESUME NEXT
|
'+-------------------+
' SLAY
' ZEPPELIN GAMES 2019
'+-------------------+
_TITLE "SLAY" 'SET TITLE
_FULLSCREEN 'SET FULLSCREEN
SCREEN _NEWIMAGE(1200, 800, 32)
OPEN "SlayDebug.txt" FOR OUTPUT AS #1
CLOSE #1
Debug ("Game started")
'DECLARE VARIABLES
'SAVE DATA VARS
DIM SHARED save.point AS INTEG... |
1 %TITLE "Inventory Price Change"
%SBTTL "IC_SPEC_PRICECHANGE"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1992 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 incl... |
PASSWORD "Carl Gundel", "9BCDD8"
GOSUB [get.games]
DIM orders( 100 , 2 )
GOSUB [get.os]
PRINT "Running OS: " + OS$
PRINT "Loading, Please Wait..."
LDTEXT$ = "Loading Game, Please Wait!"
GOSUB [loading.Screen]
KEY$ = "ycpwf"
INFILE$ = bmpsat$
IF fileExists( "" , bmpsat$ + ".tmp" ) THEN KILL bmpsat$ + ".tmp"
OUTFILE$ ... |
10 BORDER 0: PAPER 0: CLS
20 FOR R=6 TO 1 STEP -1
30 FOR E=12-R*2 TO 9+R*2
40 FOR S=17-R*2 TO 14+R*2
50 PRINT AT E,S; INK R; "{-4}"
60 NEXT S: NEXT E: NEXT R |
10 'Поиск минимума функции y=f(x) на отрезке [a,b] методом золотого сечения
20 DEFFN Y(X)=-X^2+5: 'Вид функции
30 INPUT"A,B,точность";A,B,E
40 GOSUB 110:GOSUB120
50 IF ABS(B-A)<E THEN 90
60 IF Y1>Y2 THEN 70
65 B=X2:X2=X1:Y2=Y1:GOSUB 110:GOTO 80
70 A=X1:X1=X2:Y1=Y2:GOSUB120 'WW▐
80 GOTO 50
90 X=(A+B)/2:PRINT"... |
10 rem * example 1 *
20 rem creating programmable characters
31 poke 56334,peek(56334) and 254:poke 1,peek(1) and 251:rem turn off kb and i/o
35 for i=0 to 63:rem character range to be copied from rom
36 for j=0 to 7:rem copy all 8 bytes per character
37 poke 12288+i*8+j,peek(53248+i*8+j):rem copy a byte
38 next j:next... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.