SLUG Mailing List Archives
Re: [SLUG] That somewhat theoretical problem.
- To: Bill Bennett <wbennett@xxxxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] That somewhat theoretical problem.
- From: Jason Rennie <jwrennie@xxxxxxxxxxx>
- Date: Tue Feb 20 09:19:01 2001
- Cc: slug@xxxxxxxxxxx
> All very well, except that this is a contingency occurring early
> in the process. Even if the flag =1, the process will still
> continue down the loop. I'd like to find a way (other than using
> GOTO) simply to jump out of the loop, jump over the intervening
> subprograms (which are all concerned with continuing after a
> correct response has been received) and simply quitting.
This might be a rather obvious answer (fear so) but does QBasic have the
C equivalent of an exit() function call.
It simply termiantes the program then and there. It also returns an error
code to the opreating system.
Other than that, does Qbasic have some sort of expection mechanism that
would allow you to throw an uncaught expception and terminate that way ?
Sorry i've never used QBasic, but thatis how i woudl solve the problem
(Assuming i understood it correctly) in c or c++.
Have you considered learning one of those languages in stead ?
I can recommend an excellent book on learning C++ properly, provided you
have a little experience with the basic ideas of programming and dont mind