Click to See Complete Forum and Search --> : Two newbie questions
Sc0rp
Jul 29th, 2001, 06:21 AM
: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.
:)
Aragorn
Jul 29th, 2001, 07:52 AM
I think that you need gotoxy & getchar. I'm not sure, though...
sorry!
:)
parksie
Jul 29th, 2001, 08:37 AM
I don't think you have gotoxy with anything except Borland, and I don't recall seeing it in the standard.
Aragorn
Jul 29th, 2001, 09:15 AM
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?
parksie
Jul 29th, 2001, 10:06 AM
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.
Sc0rp
Jul 29th, 2001, 11:08 AM
What about getting a single keystroke?
parksie
Jul 29th, 2001, 11:09 AM
getch() :)
Sc0rp
Jul 29th, 2001, 11:37 AM
Thanks.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.