| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Qbasic |
* On May 30 07:02 Bill Grimsley wrote to David Drummond PE>>> Show me a line of basic, and I'll tell you how to make your PE>>> life easy in C. BG>> 10 print "this is easy!" BG>> 20 goto 10 BG>> Now tell me how C or C++ can make this any easier? ;-) DD>> can you do it without the "goto"? BG> I think so... BG> 10 gosub 20 BG> 20 print "look, no goto!" BG> 30 return BG> BTW, I didn't cheat by looking at any books, and it must be 10 BG> years since I last used BASIC, so the above may not work (and I BG> couldn't be bothered finding my old basic interpreter so I can BG> check). ;-) Program executes line 10, then line 20 then line 30 jumps back and executes line 20 (line following gosub) shits at line 30 - nothing to return to. David --- msgedsq 2.1* Origin: JabberWOCky CBCS +61-7-868-1597 (3:640/305) SEEN-BY: 640/305 711/934 @PATH: 640/305 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.