Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

RE: need help debugging old school BASIC program

 
   Macintosh computer (Home) -> Programmer Help RSS
Next:  need help debugging old school BASIC program  
Author Message
Not Important

External


Since: Feb 28, 2004
Posts: 42



(Msg. 1) Posted: Fri Jun 25, 2004 5:56 am
Post subject: RE: need help debugging old school BASIC program
Archived from groups: comp>sys>mac>programmer>help (more info?)

10 rem hanshan
20 gosub 250 : rem initialize
30 rem choose pattern
40 r = int(rnd(1)*3)+1
50 on r gosub 90,140,190
60 for t = 1 to 2500 : next t
70 print : print : print
80 goto 40
90 rem ** pattern one **
100 color 14 : print w$(int(rnd(1)*20+1));"...";w$(int(rnd(1)*20+1))
110 print tab (5);"...";w$(int(rnd(1)*20+1))
120 print tab (8);s$(int(rnd(1)*20+1))
130 return
140 rem ** pattern two **
150 color 10 : print s$(rnd(1)*20+1))
160 print tab (3);s$(int(rnd(1)*20+1));"..."
170 print tab (6);s$(int(rnd(1)*20+1))
180 return
190 rem ** pattern three **
200 color 15 : print tab (3);w$(int(rnd(1)*20+1))
210 print s$(int(rnd(1)*20+1))
220 print tab (3);w$(int(rnd(1)*20+1));",";s$(int(rnd(1)*20+1))
230 return
240 rem ****************
250 rem initialization
260 width 40
270 randomize val(right$(time$,2))
280 dim w$(20),s$(20)
290 for j = 1 to 20
300 read w$(j)
310 next j
320 for j = 1 to 20
330 read s$(j)
340 next j
350 return
360 rem ** data **
370 rem ** single words **
380 data "scurrying","trading","gazing","withered","chiselled"
390 data "muffled","flanked","writhed","bending","twisting"
400 data "hammered","hanging","winding","clearest","weary"
410 data "earthworld","cataract","sacrificial","slippery","assunder"
420 rem ** short phrases **
430 data "in" "the" "cool" "stream"
440 data "nodded in clustered grace"
450 data "waves" "of" "coolness"
460 data "out from the deepest"
470 data "sullen","sullen"
480 data "in the black darkness"
490 data "i take your poems"
500 data "i put out the lamp"
510 data "my short span runs out"
520 data "those that are left"
530 data "men or learning"
540 data "men of action"
550 data "i hurry forward"
560 data "why should you waste"
570 data "when shall we meet"
580 data "little sleeping"
590 data "and much grieving"
600 data "for thos few steps"
610 data "now at dusk"
620 data "i have done with profit"

 >> Stay informed about: RE: need help debugging old school BASIC program 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
need help debugging old school BASIC program - this basic program (simple poetry-generating program) keeps giving me errors. I'm using the free Chipmunk Basic on OSX. Any help apprectiated.. 10 rem hanshan 20 gosub 250 : rem initialize 30 rem choose pattern 40 r = int(rnd(1)*3)+1 50 on r gosub..

Debugging with PB... - I have a Mach-O application that I'm trying to debug. I haven't really touched gdb since college, but I was trying to use the PB debugger (which is just gdb with a UI, as far as I can tell). The problem is, I can't get it to work. The application runs...

Debugging an AudioUnit (component) - For some odd reason, the project builder debugger (gdb) doesn't stop at my breakpoints. I've never had this problem before. I've done "Clear all" and removed the build and the component and rebuilt everything, inserted the breakpoints, copied ...

Help Debugging a Cocoa Screensaver - Hello! I am writing a little screensaver and was hoping I could get advice on debugging it. Because I am not competent enough to connect gdb to a running screensaver, I wrote a little test app that mimicked the functionality of ScreenSaverView, in ...

Debugging Twain ds Library - In SCode: I am trying to debug my Twain.ds library. Does anybody knows how to debug a library from an application which you don't have the source? Thanks for any clue.
   Macintosh computer (Home) -> Programmer Help All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]