:confused:
1) Is there a way to print a character in a specific location on the screen (in a console app)?
2) How can I get a single keypress without using cin?
Thanks.
:)
Printable View
:confused:
1) Is there a way to print a character in a specific location on the screen (in a console app)?
2) How can I get a single keypress without using cin?
Thanks.
:)
I think that you need gotoxy & getchar. I'm not sure, though...
sorry!
:)
I don't think you have gotoxy with anything except Borland, and I don't recall seeing it in the standard.
oops, sorry.
I remember using it once, but i didn't know it was non-standard.
I thought it was in <conio.h> library. Isn't that standard?
I don't think so - conio.h is a DOS header (although there's a version for console programs). My copy of VC++5 doesn't have any reference to gotoxy.
What about getting a single keystroke?
getch() :)
Thanks.