tags:

views:

146

answers:

6

So I've been using QBASIC64 today... for old school's sake.

I was wondering:

a) What is the most complex QBASIC code you have ever written was
and
b) What is the most useful code you have written

(examples would be nice but not imperative ^_^ - and this is Community Wiki and just for fun)

A: 

I never really got so far with QBasic. This would be because I'm not an old programmer. Most I ever did, (fitting both A) and B) ) was make a program the read a number from keyboard, and then calculated 10% of it, pringitng that to screen.

This must have been in 2000, as 10% gst was being introduced in australia. That makes me 9 years old. I remember spending like 6 months looking for a computer with QBasic on it.

Fond memories, of the, not so, distant past

Oxinabox
I have similar memories as well ^.^
Neurofluxation
+1  A: 

Although I never used QBasic (I managed to skip the generation of machines that had it) I did write a Z80 assembler in its predecessor, GWBasic, together with support code for some hardware to transfer the resulting machine code to my test platform. It most certainly qualified as complex, as well as being very messy and slow, but that's because I didn't know better (having not taken any data structures and algorithms classes at that point).

Donal Fellows
Again, similar memories making complex programs that were nothing more than IF statements and GOTOs
Neurofluxation
There was also GOSUB, but you had to use line numbers for everything (I believe they dropped that in QBasic and good riddance!) and no computed jumps either IIRC. Difficult, nasty and a good place to practice; even Fortran was nice by comparison, and TurboPascal was *wonderful*. Ah, the memories...
Donal Fellows
+1  A: 

GOTO used to be so easy those days :-)

Geek
+1 rep just for being right
Neurofluxation
A: 

I used to write programs with it, that had some nice visuals (i.e. a laser writing my initials) and asked for a password. Put it in my autoexec.bat, to prevent my brother from using the computer. He didn`t know that he could have pressed ctrl+c to abort it. Must have been 10 or 11 years old (my brother 3 years older :) ) Ah, those memories...sigh And yes, I loved GOTO, too :)

tombom
A: 

Most Useful, and probably most complex: I wrote a quizzer program in QBasic that had mouse support, graphical buttons you could click, etc. It also used a generic file format so you could write new questions and load them in if you wanted to. The code is online if you are interested, although sadly the associated image / data / etc files are lost to time: http://code.google.com/p/justinethier/source/browse/trunk/qbasic_quizzer/project.bas

Justin Ethier
Awesomely long code there! Shame it won't compile on QB64 :'(
Neurofluxation
You could probably break it down into pieces and get it to work that way, if you really wanted. The lower-level mouse code was written for DOS (not by me) so it might well have to be rewritten.
Justin Ethier