Computing.Net > Forums > Programming > Qbasic convert to C++ question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Qbasic convert to C++ question

Reply to Message Icon

Name: Dave
Date: February 27, 2002 at 07:42:36 Pacific
Comment:

When running Qbasic programs I've written, I am able to just press the enter key to get the equivelent of "0" or no response for a response (or to accept a set response such as "to use 95, press enter" by writting something such as: IF OATemp = "" THEN OATemp = 95, into the program). In C++, a similar program doesn't advance beyond the point where I press the enter key unless I also enter another keyed response. I would have to enter the 95 to get the program to continue. The "IF THEN" form of C++ won't accept the enter key as no response and waits for something else. Is there a way to get C++ to accept the enter key in the same way as Qbasic?

I've tried to find this in books on C and C++ but I guess I don't know what to call it. Would this be a null response?

Thanks for your help.



Sponsored Link
Ads by Google

Response Number 1
Name: chelsie
Date: February 27, 2002 at 09:32:51 Pacific
Reply:

do ur self a faver chuck ur c++ compiler in the bin and get turbo pascal 7 and type in
begin
write(' pascal is better than c ');
readln;
end.
and your on to a winner.


0

Response Number 2
Name: .:AlphaOne:.
Date: May 1, 2002 at 20:22:38 Pacific
Reply:

I think I'm gonna throw up. *thumbs down*


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Qbasic convert to C++ question

Converting to C++ From VB 6.0 www.computing.net/answers/programming/converting-to-c-from-vb-60/4231.html

converting qbasic to c++ www.computing.net/answers/programming/converting-qbasic-to-c/6929.html

Convert .asm to .c www.computing.net/answers/programming/convert-asm-to-c/7883.html