text stringlengths 7 5.36M |
|---|
10 IF 10 < 20 THEN IF 10 <> 30 THEN IF 20 > 10 THEN IF (10 + 10) = 20 THEN GOTO 30
20 PRINT "OOPS"
30 PRINT "GOOD" |
Attribute VB_Name = "mNetShare"
Option Explicit
Private Const ERROR_MORE_DATA = 234
Private Const SHPWLEN = 8
Enum enmSTYPE
STYPE_DISKTREE = 0
STYPE_PRINTQ = 1
STYPE_DEVICE = 2
STYPE_IPC = 3
STYPE_SPECIAL = &H80000000
End Enum
Enum enmACCESS
ACCESS_NONE = 0
ACCESS_READ = &H1
ACCESS_WR... |
Operation =1
Option =0
Where ="(((dbo_ProjectHeader.DocketNum)>0) AND ((dbo_ProjectHeader.void)=False) AND ((db"
"o_ProjectHeader.invoicenum) Is Null) AND ((dbo_ProjectHeader.ProjectStatusID)<=3"
"0) AND ((Left([StOutsideSrv],4))<>\"COMP\")) OR (((dbo_ProjectHeader.DocketNum)>"
"0) AND ((dbo_ProjectHeader.... |
1 %TITLE "Payroll Net Check Audit Report"
%SBTTL "PR_SPEC_MOVEBATCH"
%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 inc... |
1 %TITLE "Product Scan Report"
%SBTTL "IC_OUTP_PRODUCT"
%IDENT "V3.6a Calico"
FUNCTION LONG IC_OUTP_PRODUCT(PD_PRODUCT_CDD PD_PRODUCT, &
UTL_LOCATION_CDD UTL_LOCATION, &
STRING CURPERIOD)
!
! COPYRIGHT (C) 1986, 1988 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furn... |
10 REM My first BASIC program
20 PRINT "HELLO, WORLD!"
30 GOTO 20
|
10 1-VAR1 = 1.2-VAR1
30 1-VAR2 = 1.2-VAR2
50 1-VAR3 = 1.2-VAR3
70 1-VAR4 = 1.2-VAR4
90 1-VAR5 = 1.2-VAR5
|
Attribute VB_Name = "numberStationMQ"
Option Explicit
Option Compare Text
Option Base 0
'============================================================================================================================
'
'
' Author : John Greenan
' Email :
' Company : Alignment Systems Limit... |
DIM age AS INTEGER
DIM myName AS STRING
INPUT "What is your name"; myName
INPUT "Enter your age:", age
CLS
PRINT myName; " is "; age; " years old."
|
Version =20
VersionRequired =20
Begin Form
AutoCenter = NotDefault
ScrollBars =2
PictureAlignment =5
PictureSizeMode =1
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =15300
DatasheetFontHeight =10
ItemSuffix =58
Right =1320
DatasheetGridlinesColor =12632256
... |
SCREEN 9
COLOR 0, 15
CLS
file$ = "C:\MINT\dude.bpx"
LET y = 0
LET b = -1
OPEN file$ FOR INPUT AS 1
DO WHILE NOT EOF(1)
LINE INPUT #1, l$
LET t = VAL(l$)
t = t * 2
IF b = 1 THEN LINE (x, y)-(x + t, y + 1), 1, BF
b = b * -1
x = x + t
IF x > 175 THEN
... |
SCREEN 18
FUNCTION min
min=VAL(MID$(TIME,4,2))
END FUNCTION
FUNCTION sek
sek=VAL(MID$(TIME,7,2))
END FUNCTION
FUNCTION std
std=VAL(MID$(TIME,1,2))
END FUNCTION
DIM laenge_sek AS INTEGER
DIM laenge_min AS INTEGER
DIM laenge_std AS INTEGER
DIM faktor AS SINGLE
laenge_sek=150
laenge_min=130
... |
20 let a=1
30 rem ***first throw**
40 gosub 150
50 let t1=t
60 rem ***second throw***
70 gosub 150
80 let t2=t
90 if t1=t2 then goto 120
100 let a=a+1
110 goto 40
120 print"equal scores of"t1"in"a"throws"
130 end
140 rem ***subroutine***
150 gosub 190
155 let d1=d
160 gosub 190
165 let d2=d
170 let t=d1+d2
180 return
1... |
5 DIM X(4,2,1)
10 L=0
20 FOR K = 0 TO 1
30 FOR J = 0 TO 2
40 FOR I = 0 TO 4
50 L=L+1
66 X(I,J,K)=L
70 NEXT
80 NEXT
90 NEXT
|
10 x=0
20 ready:ify=-1then100
30 poke513+x,y:x=x+1:goto20
100 sys513:ifpeek(512)=1thenload"4510",8
110 load"65sc02",8
1000 data163,163,169,0,107,201,0,240,4,169,1,208,2,169,0,141,0,2,96,-1
|
5 cls
10 let rockets=20
20 print "you have " + rockets + " rockets"
30 print "press enter to fire"
35 input i
40 print "fire!!! ------------->"
50 rockets = rockets - 1
60 if rockets > 0 then goto 20
70 print "out of rockets!" |
10 rem *** BAGELS
20 rem *** MODIFIED BY FRED MOORE FOR
30 rem *** PEOPLES COMPUTER COMPANY
40 dim n(3),a(3)
50 rem *** INSTRUCTIONS
60 print "WANT THE RULES (1=YES,0=NO)";
70 input r
80 if r<>1 then goto 150
90 print
100 print "I AM THINKING OF A THREE DIGIT NUMBER (NO DIGITS THE SAME)."
110 print "TRY TO GUESS MY NUM... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
AllowDesignChanges = NotDefault
TabularCharSet =178
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
... |
_TITLE "Save the hangman"
SCREEN _NEWIMAGE(800, 600, 32)
_SCREENMOVE _MIDDLE
White& = _RGB(255, 255, 255)
Green& = _RGB(0, 255, 0)
letters$ = ""
word$ = "basic" 'use only lowercase
correct$ = STRING$(LEN(word$), "_")
wrong = 0
DO
CLS
'draw the platform
LINE (200, 420)-(550, 450), White&, B... |
atom=K
contraction shell=D num_primitives=1 num_coefficients=1
0.48 1.000000
atom=Rb
contraction shell=D num_primitives=1 num_coefficients=1
0.24 1.000000
atom=Cs
contraction shell=D num_primitives=1 num_coefficients=1
0.19 1.000000
|
REM Sean Coyne
REM Intro to Programming
CLS
LET miles = (23695 - 23340)
LET gallons = 14.1
LET mpg = miles / gallons
PRINT mpg
END
|
10 SYS 1: REM Extensions on for LOCATE command
20 ? CHR$(147);"Screen clear and home";
30 ? CHR$(17);CHR$(17);CHR$(17);"DOWN 3 lines";
40 ? CHR$(17); CHR$(29); CHR$(29); CHR$(29);"Down 1, right 3";
50 ? CHR$(17);CHR$(17);CHR$(17);
60 ? CHR$(145); CHR$(157); CHR$(157); CHR$(157);"Down 3, up 1, left 3";
70 ? CHR$(19); CH... |
DIM SHARED Version AS STRING
DIM SHARED BuildNum AS STRING
DIM SHARED AutoBuildMsg AS STRING
Version$ = "1.3"
BuildNum$ = "[dev build]"
IF _FILEEXISTS("internal/version.txt") THEN
versionfile = FREEFILE
OPEN "internal/version.txt" FOR INPUT AS #versionfile
LINE INPUT #versionfile, AutoBuildMsg
CLOSE #v... |
5 LET J = 1
10 FOR I = 1 WHILE J < 10
20 PRINT I
25 LET J = J + 1
30 NEXT I
90 STOP
99 END
|
REM Brotexplorer by SanguineBrah
REM modified by Ulrich Hecht
screen 1:palette 0
REM set initial conditions
capnum=0
maxiteration=100
ioffsetx=-0.5
ioffsety=0
iscale=3
offsetx=ioffsetx
offsety=ioffsety
renderscale=iscale
CPOSX=0
CPOSY=0
cxspeed=PSIZE(0)*0.005
cyspeed=PSIZE(1)*0.005
zoomfactor=3
colsalt=RND(1)*255
RE... |
dbMemo "SQL" ="TRANSFORM First(Query2.Version) AS VarOfVersion\015\012SELECT Query2.[EffectiveD"
"ate]\015\012FROM Query2\015\012GROUP BY Query2.EffectiveDate\015\012ORDER BY Que"
"ry2.NumName\015\012PIVOT Query2.NumName;\015\012"
dbMemo "Connect" =""
dbBoolean "ReturnsRecords" ="-1"
dbInteger "ODBCTimeout" ="... |
10 SYMBOL AFTER 256
20 MEMORY &4099
30 SYMBOL AFTER 240
40 RUN"MAIN
|
10 ' DELPHIterm BASIC loader
20 '
30 ' COPYRIGHT 1991
40 ' BY RICK ADAMS
50 '
60 '*** PARAMETERS ***
70 '
80 '---DISPLAY MODE---
90 '
100 'NUMBER OF COLUMNS (40 OR 80)
110 CMAX=80
120 '
130 'LEFT MARGIN (FOR TV)
140 LFMAR=0
150 '
160 'MAIN SCREEN COLORSET
170 FCOLOR=63
180 BCOLOR=1
190 '
200 'CO-LINE COLORSET
210 CFORE... |
10 FOR I = 0 TO 3
20 READ WF(I)
30 NEXT
40 PRINT WF(0),WF(1),WF(2),WF(3)
50 DATA 17,33,65,129 |
REM -------- VIER gewinnt -------------------------------------- Pawel
SHELL "C:\Qbasic\Vier\Version2\Flyplay C:\Qbasic\Vier\Version2\BRETT3.fli"
DIM feld(6, 5): DIM stein(3) 'Felder dimensionieren
los:
SCREEN 12: CLS : COLOR 15
Mpunkte = 0: Cpunkte = 0: anf = 1: begin = 0 'Variablen vereinbaren
a... |
10 PRINT "DO YOU WANT INSTRUCTIONS (IF SO TYPE A 1)";
15 INPUT K
25 IF K<>1 THEN 155
30 PRINT
35 PRINT
40 PRINT
45 PRINT
50 PRINT"THIS IS A GAME OF BLACKJACK, LAS VEGAS STYLE."
55 PRINT"HERE ARE THE RULES OF THE HOUSE. THE DEALER"
60 PRINT"MUST HIT ON 16 OR LESS AND WILL STAY ON 17 OR"
65 PRINT"MORE. YOU... |
1 %TITLE "Read Actual Cost for Subaccount"
%SBTTL "SB_READ_COST"
%IDENT "V3.6a Calico"
FUNCTION REAL SB_READ_COST(XSUBACCOUNT$, XSYSTEM$)
!
! 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 onl... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-560829494
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
OrderByOn = NotDefault
AllowDesignChanges = NotDefault
ScrollBars =2
PictureAlignment =2
DatasheetGridlinesBehavior =3
... |
10 PRINT "what is your name?"
20 INPUT "...(Enter Your Name)...", A$
30 PRINT
40 PRINT "hello, "; A$; ", I am your computer, nice to meet you."
|
Attribute VB_Name = "CustTransfer"
Option Explicit
Public Function TransferNameTab(OldDBName As String, NewDBName As String) As Boolean
Dim OldTrans As New clsOldUtils
Dim NewTrans As New clsDBUtils
Dim LanguageName As String
Dim CompanyName As String
LanguageName = ""
CompanyName = ""
If Not OldTrans.OpenDB(OldDB... |
10 LET X = 34.8
20 LET Y = X * 2 + 1
30 PRINT "X =", X, ", Y =", Y
40 END
|
10 COLOR 15,3,4:SCREEN 5:OPEN"GRP:"AS#1:SET PAGE 0,0
30 LINE(100,0)-(130,30),0,BF:LINE(100,40)-(130,70),2,BF
50 IF INKEY$="" THEN 50
60 SET PAGE 0,1:CLS:SET PAGE 1,1
70 COPY (0,0)-(255,100),0 TO (100,0),1,TPSET 'Подставьте TAND!
80 PSET(205,10),1:PRINT#1,POINT(210,5)
90 PSET(205,50),1... |
Attribute VB_Name = "Common"
Option Explicit
'得到驱动器类型API
Private Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (ByVal nDrive As String) As Long
'得到所有驱动器API
Private Declare Function GetLogicalDriveStrings Lib "kernel32" Alias "GetLogicalDriveStringsA" (ByVal nBufferLength As Long, ByVal lpBuf... |
5 rem * tune *
10 chip=54272:c=chip
20 nl(0)=c+0:nh(0)=c+1:w(0)=c+4:ad(0)=c+5:sr(0)=c+6:volume=c+24
30 for reg=chiptochip+24:pokereg,0:next
40 poke ad(0),64+9:poke sr(0),240+0
50 poke volume,15
60 read f,dur:if f<0 then poke w(0),0:end
65 dur=dur*20
70 nh(1)=int(f/256):nl(1)=f-nh(1)*256:pokenh(0),nh(1):pokenl(0... |
1 %TITLE "Device File Maintenance Function"
%SBTTL "UTL_MAIN_DEVICE"
%IDENT "V3.6a Calico"
FUNCTION LONG UTL_MAIN_DEVICE(CDD_WINDOW_CDD SMG_WINDOW, &
LONG MOPTION, LONG MLOOP, LONG MFLAG, STRING MVALUE)
!
! COPYRIGHT (C) 1989 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software ... |
!--------------------------------------------------
!- Friday, May 12, 2017 11:09:48 PM
!- Import of :
!- c:\src\zelch64\bak\credit.prg
!- Commodore 128 BASIC 7/7.1
!--------------------------------------------------
8000 SYS51983
8005 X=0:FORI=0TO9:I1(I)=0:NEXT:I5$="@*##J"
8010 TX$="{clear}{down*3}{f1}CREDIT{... |
1000 REM ******************************************************************
1010 REM * GPSS/PC(tm) COMMENT STRIPPER
1020 REM * BY
1030 REM * BRAD A. HEDRICK-GPSS/PC(tm) USER
1040 REM * AT HIRAM WALKER & SONS
1050 REM *
1... |
1 !
! Dump chart of accounts in to an ascii file
!
!
!++
!
! Compile:
!
! $ BAS AR_SOURCE:AR_ASCI_OPEN/LINE
! $ LINK/EXEC:AR_EXE AR_ASCI_OPEN,FUNC_LIB:CMCLINK/OPTION
! $ DELETE AR_ASCI_OPEN.OBJ;*
!
! History:
!
! 07/19/2001 - Kevin Handy
! Added compile statement
! Lose CDD requirement
!--
%include ... |
819 OPEN "R", #1, "ORBITSSE.RND", 254
inpSTR$=space$(254)
GET #1, 1, inpSTR$
close #1
if len(inpSTR$) <> 254 then locate 25, 1:color 12:print "ENG telem";:goto 812
chkCHAR1$=left$(inpSTR$,1)
chkCHAR2$=mid$(inpSTR$,210,1)
if chkCHAR1$=chkCHAR2$ then 818
... |
Version =20
VersionRequired =20
Begin Form
DividingLines = NotDefault
AllowDesignChanges = NotDefault
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =8884
DatasheetFontHeight =11
ItemSuffix =7
Left =5085
Top =3945
Right =14250
Bottom =853... |
CLS
SCREEN 0
PRINT "F:\>";
COLOR 23
PRINT "_"
COLOR 7
FOR a = 1 TO 3
DO
a$ = INKEY$
IF a$ <> "" THEN PRINT "ERROR": PRINT "Error Code 0169"
LOOP UNTIL a$ <> ""
BEEP
NEXT
SCREEN 12
FOR u = 1 TO 12345
NEXT
LINE (0, 0)-(640, 480), , BF
Y = 480
FOR I = 1 TO 240
LINE (0, x)-(640, x), 0
x = x + 1
LINE (0... |
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... |
1 %TITLE "Fix Dates in all Systems"
%SBTTL "UT_SPEC_FIXDATE"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 2003 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 t... |
DECLARE FUNCTION RispPos% (Prompt$, Riga%, Col%)
'
' *** UCASE_EX.BAS -- Programma esempio per la funzione UCASE$
'
DEFINT A-Z
DO
LOOP WHILE NOT RispPos("Conosci la frequenza?", 12, 5)
FUNCTION RispPos (Prompt$, Riga, Col) STATIC
RigaOrig = CSRLIN
ColOrig = POS(0)
' Stampa il prompt alla posizion... |
10 for z=0 to 69:read x
20 poke 832+z,x:next z:goto 90
30 data 169,29,141,24,208,169,59,141,17,208
40 data 169,32,133,252,169,0,133,251,160,0,169,0,145,251
50 data 200,208,251,24,165,252,201,63,240,4,230,252,208,236
60 data 162,0,169,0,157,0,64,232,224,63,208,248
70 data 162,0,169,13,157,0,4,157,0,5,157,0,6,157,232,6,2... |
setint %00010000, %00010000, C
symbol num = b0
main:
tune b.4, 4,($65,$65,$65,$EA,$C5,$43,$42,$40,$CA,$05,$43,$42,$40,$CA,$05,$43,$42,$43,$C0,$2C,$65,$65,$65,$EA,$C5,$43,$42,$40,$CA,$05,$43,$42,$40,$CA,$05,$43,$42,$43,$C0)
pause 500
goto main
interrupt:
for num = 1 to 5
pause 200
high b.0
pause 200
l... |
100 REM Program to demonstrate color in high-resolution
110 REM graphics mode on RGB monitors only.
120 SCREEN 2:KEY OFF:CLS 'Set screen
130 REM We will make the circle each color in turn
140 CIRCLE (320,100),50:PAINT STEP(0,0)
150 LOCATE 18,34:PRINT "COLORED CIRCLE" 'Label it
160 REM Do all 15 colors b... |
;rubik-kubusvlak ==0801==
2 goto 1000
5 print chr$(147)
10 rem**kleurenprobleem**
20 poke 36879,59
30 dim a%(5,5):for i=0 to 4:read a%:for j=0 to 4:a%(i,j)=a%:next j,i
40 data 28,5,31,158,30
50 :rem red,white,bleu,yellow,green
60 goto 510
100 rem**schermlayout**
120 for i=5 to 1 step -1:... |
SCREEN _NEWIMAGE(500, 650, 32)
_LIMIT 15
CONST PAWNDISTANCEPX = 53
CONST WHITE = 1
CONST BLACK = 2
DIM SHARED outW(15) AS INTEGER, outB(15) AS INTEGER
DIM SHARED outWCounter AS INTEGER, outBCounter AS INTEGER
DIM SHARED arrayW(7, 7) AS INTEGER, arrayB(7, 7) AS INTEGER 'un array par joueur
DIM SHARED pawnB, pawnW, rook... |
Check F2C72467
Auto 1
# Run-time Variables
Var b: Num = 3
Var g: NumFOR = 9, 8, 1, 20, 4
Var f: NumFOR = 7, 6, 1, 20, 6
Var a$: Str = "15"
# End Run-time Variables
10 REM Lotto-picker by Dunny
20 RANDOMIZE : LET a$=" !""#$%&'()*+,-./0123456789:;<=>?\*ABCDEFGHIJKLMNOPQ": FOR g=1 TO 8: PRINT AT g,0;"... |
1 CLR
2 DIM C$(1)
3 DIM A$(1)
4 A$="Y"
5 DIM B$(1)
6 B%="N"
10 PRINT CHR$(125)
20 X=INT(6*RND(1))+1
30 PRINT "PLEASE TAKE A GUESS HUMAN"
40 PRINT "A NUMBER FROM 1 TO 6"
50 INPUT G
60 PRINT CHR$(125)
90 PRINT X," WAS THE NUMBER"
100 IF G=X THEN PRINT "WELL DONE!":GOTO 120
110 PRINT "WRONG GUESS HUMAN!"
12... |
0001 REM Copyright 2012 Lexi Robinson
0001 REM
0001 REM Licensed under the Apache License, Version 2.0 (the "License");
0001 REM you may not use this file except in compliance with the License.
0001 REM You may obtain a copy of the License at
0001 REM
0001 REM http://www.apache.org/licenses/LICENSE-2.0
0001 REM
000... |
1 REM ** butterfingers **
2 POKE530,1:GOSUB100
3 KE=57088:DI=30
4 PRINTCHR$(26):POKE53325,32
5 L=53790:P=2
6 OF=0:GOSUB35
7 DIMP(2),D(2),F(2),A(20,2),C(2)
8 K1=7:K2=13:K3=19:GOSUB91
9 FORT=0TO2:D(T)=1:NEXT
10 P(0)=INT(RND(1)*4)
11 P(1)=INT(RND(1)*7)
12 P(2)=INT(RND(1)*10)
13 FORT=0TO2:F(T)=0:GOSUB19
14 IFP(T)+D(T)<0THE... |
Attribute VB_Name = "modMapIO"
'**************************************************************
'This program is free software; you can redistribute it and/or modify
'it under the terms of the GNU General Public License as published by
'the Free Software Foundation; either version 2 of the License, or
'any later version... |
Attribute VB_Name = "OPTIM_MULTVAR_SEGMENT_LIBR"
'// PERFECT
'------------------------------------------------------------------------------
'------------------------------------------------------------------------------
Option Explicit 'Requires that all variables to be declared explicitly.
'---------------... |
CLS
PRINT "TEAM RECORD"
PRINT
PRINT "NAME", "AGE"
PRINT
PRINT "PATRICIA", "18"
PRINT "RONALD", "20"
PRINT "MARIA", "21"
PRINT "TIEN", "19"
PRINT "KENNETH", "22"
END
|
Attribute VB_Name = "Module1"
Option Explicit
Public Declare Sub Bitmap_Init Lib "bitmap.dll" Alias "Bitmap_Init@12" (ByVal hwnd As Long, ByVal nBufferWidth As Long, ByVal nBufferHeight As Long)
Public Declare Sub Bitmap_LoadBitMapFile Lib "bitmap.dll" Alias "Bitmap_LoadBitMapFile@16" (ByVal Index As Long, ByVal FileN... |
10 LET X = 999
20 PRINT 42
30 PRINT X
40 PRINT (1 + 2) * (3 + 4)
50 PRINT "Hello, world!"
60 PRINT 42, 15
70 PRINT 42, X - 11,
80 PRINT "should be on same line!"
90 PRINT "a", "b", "c",
100 PRINT "d"
110 END
|
Attribute VB_Name = "mLights"
Option Explicit
'#Requires
'# Direct3DVertexBuffer8
'# That initD3D has been run
'# Constant for untransformed and unlit verticies
Public Const NORMAL_FVF = (D3DFVF_XYZ Or D3DFVF_NORMAL)
'# Type for untransformed and unlit verticies.
Type NORMALVERTEX
X As Single
Y ... |
#COMPILE EXE
#DIM ALL
#INCLUDE "DoubleQueueUsingArray.inc"
FUNCTION PBMAIN () AS LONG
LOCAL x AS LONG
LOCAL value AS DOUBLE
LOCAL runningRMSAVGQueue AS doubleQueueInfo
startDoubleQueue(runningRMSAVGQueue)
FOR x = 1 TO 100
IF (x >= 10) THEN
#DEBUG PRINT "10 or greater "
... |
'VA: 4043D4
Private Declare Function DeleteObject Lib "gdi32" Alias "DeleteObject" (ByVal hObject As Long) As Long
'VA: 40438C
Private Declare Function SelectObject Lib "gdi32" Alias "SelectObject" (ByVal hdc As Long, ByVal hObject As Long) As Long
'VA: 404344
Private Declare Function CreateFont Lib "gdi32" Alias ... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
ControlBox = NotDefault
AutoCenter = NotDefault
DividingLines = NotDefault
ScrollBars =0
BorderStyle =0
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
PictureType =... |
100 rem *** LETTER - A LETTER GUESSING GAME
120 a$="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
200 rem *** PRINT INSTRUCTIONS ON HOW TO PLAY
210 print "I WILL THINK OF A LETTER OF THE ALPHABET, A TO Z."
220 print "TRY TO GUESS MY LETTER. AFTER EACH GUESS, I WILL"
230 print "TELL YOU IF YOU GUESSED MY LETTER OR IF YOUR GUESS"
240 pri... |
10 REM*** BULLSEY. BY DAVE AHL
20 PRINT "GAME OF BULLSEVE"\PRINT\RANDOMIZE
30 PRINT "IN THIS GAME, UP TO 20 PLAYERS THROW DARTS AT A TARGET"
40 PRINT "WITH 10, 26, 30, AND 40 POINT ZONES. THE OBJECTIVE IS"
50 PRINT "TO GET 200 POINTS."\PRINT
60 PRINT "THROW","DESCRIPTION",,"PROBABLE SCORE"
70 PRINT " 1","FAST OVERARM",... |
Attribute VB_Name = "Laptops_SAPSortColumns"
' This script sorts colomns in "enter data" subpage
Sub Laptops_GetSAPSortColumns()
On Error GoTo Catch
If Not IsObject(sapApplication) Then
Set SapGuiAuto = GetObject("SAPGUI")
Set sapApplication = SapGuiAuto.GetScriptingEngine
End If
If Not IsO... |
'UDP Server
udp_socketopen(0, 2000)
print "waiting for quit"
udata$ = ""
host$ = ""
port = 0
while true
gotSomething = udp_getdata(0,udata$,host$,port)
if udata$ = "quit" then
exit while
end if
if length(udata$) > 0 then
print "Data: " + udata$()
end if
wend
udp_socketclose(0)
end
|
10 let n = 101
20 let p = 3
30 gosub 100
40 if n % p = 0 then print p else print n
50 end
100 if p * p > n then return end if
110 if n % p = 0 then return end if
120 let p = p + 2
130 goto 100
|
' * * * * * * *
' * * ***STARBALL*** * * * *
' * * * * * * *
' Programmed by Gunne Ekelin 1997. (Metroid music by Jonas Thulin)
' Player one operates his pad with the number keys "4", "5" a... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
WhatsThisButton = NotDefault
DefaultView =0
... |
rem 53280 - frame color
rem 53281 - screen background color
10 poke 53280,8 : poke 53281,0 : print chr$(147)
15 print chr$(5) : print : print
20 for y=1 to 13 : for x=1 to 13
30 read m : print tab(12);
40 on m goto 60,70,80,90,100,110
50 on m-6 goto 120,130,140,150,160
60 print chr$(98); : goto 170
70 print chr$(99); :... |
CLS
'************DECS**********
DIM agentName AS STRING
DIM encSold, encCost AS INTEGER
DIM comission, totSale, baseCommision, finalCommision AS DOUBLE
'**********INPUT************
INPUT "ENTER AGENT NAME ", agentName
INPUT "ENTER ENCYCLOPEDIAS SOLD: ", encSold
'********PROCESSING*******
encCost =... |
Attribute VB_Name = "FINAN_FI_LMM_LIBR"
Option Explicit 'Requires that all variables to be declared explicitly.
Option Base 1 'The "Option Base" statement allows to specify 0 or 1 as the
'default first index of arrays.
'*******************************************************************... |
'..........................Dumb Mall Adventure Intro............
SCREEN 0
CLS : WIDTH 40
D1 = 1'..............How may charachters down the dumb goes
O1 = 11'................How many charachters over the dumb gose
Bounce = 7'.................Keeps the dumb bouncen
C1 = 14'..................Color of the dumb
C2 ... |
CLS
SCREEN 12
PAINT(1,1),4,15
PRINT"Stas "
FOR A=0 TO 100
FOR B=0 TO 30
N=B*4
IF POINT(A,B)=15 THEN LINE(A*12+74-N,B*9+233)-(A*12+85-N,B*9+243),8,BF
NEXT
NEXT
FOR A=0 TO 100
FOR B=0 TO 30
IF POINT(A,B)=15 THEN LINE(A*12+30,B*12+200)-(A*12+40,B*12+210),10,BF:CIRCLE(A*1... |
!--------------------------------------------------
!- Saturday, June 03, 2017 2:28:02 PM
!- Import of :
!- c:\src\emutil\cbm8bit\datamaker.prg
!- Commodore 64
!--------------------------------------------------
10 P=8192:L=3000
20 PRINTMID$(STR$(L),2);"dA"+CHR$(34);:C=0:Y=0
30 X=PEEK(P):X1=INT(X/16):X2=X-(X1*... |
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 'Unit converter, for Chipmunk BASIC, web: http://rudih.info
15 CLS
20 PRINT "---Unit converter---"
30 PRINT "Enter conversion type, or <0> to quit:"
40 PRINT "<1>inch-centimetre <2>centimetre-inch <3>foot-metre <4>metre-foot"
50 PRINT "<5>mile-kilometre <6>kilometre-mile"
60 PRINT "<7>pound-kilogram <8>kilogra... |
REM @english
REM FLOW CONTROL BY LOOPS (2)
REM
REM This small example will use the ''DO...LOOP'' keywords to implement
REM an endless loop, and the command ''EXIT'' to break a loop. The outer
REM loop will change, at each half of second, the border's color from
REM black to yellow. The inner loop will change the... |
DIM AS INTEGER I,J,K,T,G,N,X,P
DIM AS INTEGER A(100), B(100), C(100), D(100), S(100)
FOR I = 1 TO 100
A(I) = 1: B(I) = 1 : S(I) = 0
NEXT I
S(1) = 2
K = 1: T = 1
INPUT "N="; N
IF N < 3 THEN
IF N = 1 THEN PRINT 1
IF N = 2 THEN PRINT 1,1
ELSE
PRINT 1,1,
FOR I = 3 TO N
G = 0
FOR J = 1 T... |
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... |
DECLARE SUB START ()
DECLARE SUB FISH ()
DECLARE SUB FISHRIGHT ()
DECLARE SUB FISHLEFT ()
DECLARE SUB GETTREASURE ()
DECLARE SUB TOUCH ()
DECLARE SUB WIN ()
DECLARE SUB SCREENS ()
DECLARE SUB LO5LA1 ()
DECLARE SUB BOAT ()
DECLARE SUB CHASE ()
1 REM LINE ONE
REM ********************************************... |
_SCREENHIDE
_TITLE "Quadratic Formula Solver"
SCREEN 13
icon = _LOADIMAGE("..\resources\jarvis.png")
_ICON icon
SCREEN 12
_SCREENSHOW
DO
a$ = ""
b$ = ""
c$ = ""
d$ = ""
e$ = ""
inputs = 0
DO
inputs = inputs + 1
DO
_LIMIT 64
CLS
PRINT "x^2 c... |
'------ VPong 1.1 ---------
'------ A vertical PONG game. ---------
'------ October 1996 Mike Rayl and William Travis Jones --------
'------ Player 1 layout: 4 is left / 6 is right / 5 is stop
'------ Player 2 layout: a is left / d is right / s is stop
'------ Just tap the keys when playing instead of holding th... |
atom=Li
contraction shell=S num_primitives=6 num_coefficients=1
6269.2628010 .20540968826E-03
940.31612431 .15916554089E-02
214.22107528 .82869829707E-02
60.759840184 .33856374249E-01
19.915152032 .11103225876
7.3171509797 .27449383329
contraction shell=S num_primitives=2 num_coefficients=1
2.9724674216 .23792456411
1.... |
Public Sub main()
x = 1
y = 2
If x = 1 Then GoTo 10 'якщо х=1, перейти на рядок 10
y = 3
10 Debug.Print y 'рядок з міткою 10
End Sub
|
#COMPILE EXE
#DIM ALL
#DEBUG ERROR ON
'#RESOURCE "AP-CSV.pbr"
#RESOURCE ICON, ICON_ID, "AP-CSV.ICO"
#INCLUDE "comdlg32.inc"
#INCLUDE "win32api.inc"
#PBFORMS BEGIN CONSTANTS
%MAXPPS_SIZE = 2048 '*
%FRAME_TECHNICIAN = 1000 '*
%TEXTBOX_TECH = 1001 '*
%BUTTON_ADDTECH = 1002 '... |
DATA "RSC_TO_S -- Version 1.00 by Keith Baines 3rd January 1993"
'
' Program to Convert Wercs RSC and HRD files as assembler source code
' This version accepts command line file name and needs Basic 2
'
' Install as Devpac tool with the following parameters:
'
'
'
' COMPILER OPTIONS
'
' L20 -... |
90 REM * DEMONSTRATE RANDOM ACCESS
100 FILES "text.txt"
110 PRINT "ITEM #";
120 INPUT R
130 IF R=0 THEN 170
140 READ #1,R;X
150 PRINT X
160 GOTO 110
170 END
|
PRINT "Anda mendatangi sebuah restoran, hendak makan di sana. Ternyata"
PRINT "restoran tersebut sedang mengadakan sebuah permainan untuk merayakan"
PRINT "kesuksessannya."
PRINT ""
PRINT "Pelayan yang mendatangi Anda mengatakan, Anda hanya perlu memilih"
PRINT "sebuah angka diantara 1 sampai 100."
PRINT ""
PRINT "Bila... |
10 COLOR 15,1,1
20 screen 2,2,0
30 BLOAD "ilogic.sc2",s
40 defint A-Z
50 SOUND 8,&b00000
51 SOUND 12,48
52 SOUND 11,1
53 SOUND 13, 0
54 SOUND 7,&b10111110
55 SOUND 0,&h4E
56 SOUND 1,5
101 BLOAD "sprites.bin",S
102 FOR I=0 TO 31:PUT SPRITE I,((I MOD 16)*20,132+(I\16)*16),0,0:NEXT I
110 DEF FN FF(X,Y)=VPEEK(&H1800+X\8+... |
Version =21
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 =5460
DatasheetFontHeig... |
CLS
SCREEN 12
A = 320
B = 240
SIZE% = 4
PNTS% = 100
N% = 2
FOR X = 0 TO PNTS%
B.X = X
B.Y = Y
LET Y = (X / SIZE%) ^ N%
LINE (0, 240)-(640, 240), 15
LINE (320, 0)-(320, 480), 15
LINE (A - X, B - Y)-(A - B.X, B - B.Y), 4
LINE (A + X, B - Y)-(A + B.X, B - B.Y), 4
NEXT
END
... |
x = 1
y = 1
x1 = 2
y1 = 2
SCREEN 12
LOCATE 15, 28: PRINT "Escape From The Dungeon"
SLEEP 1
GOTO START:
START:
CLS
DO
delay = delay + 1
IF delay = 100 THEN GOSUB ENEMY:
a$ = INKEY$
IF a$ = CHR$(0) + "M" THEN GOSUB RIGHT1:
IF a$ = CHR$(0) + "K" THEN GOSUB LEFT1:
IF a$ = CHR$(0) + "P" THEN GOSUB DOWN1:
... |
'********** GetEquip.Bas - use GetEquip to report one the installed equipment
'Copyright (c) 1989 Ethan Winer
DEFINT A-Z
DECLARE FUNCTION GetCPU% ()
DECLARE FUNCTION MathChip% ()
DEF FnTrim$ (X) = LTRIM$(STR$(X)) 'strips that damn leading blank
DEF FnPlural$ (Number, Message$) 'this avoids dumb messag... |
10 REM CALCULATING THE GAMMA FUNCTION
20 DEFDBL A-Z: REM ALL VARIABLES ARE DOUBLE PRECISION
40 CLS
50 REM CALCULATE THE GAMMA FUNCTION WITH
60 REM NUMERICAL INTEGRATION
70 REM AND COMPARE IT WITH THE FACTORIAL
1000 REM THE GAMMA FUNCTION
1010 REM GAMMA(X) = INTEGRAL [0.0 TO INF] EXP(-T) * T ^(X-1.0) DT
1020 DEF... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.