0

Hi guys,
when ive used Turbo c compiler and i wanted to put the program
ona "wait key" status until the user hit sum key , ive used getch(); .
when i try to use this command in Visual C++ 6.0 im getting an error..
Is there a diffrent command to do it that works in vc6 ??

3
Contributors
4
Replies
5
Views
11 Years
Discussion Span
Last Post by Aia
0

Thank it works , but way i cant use the other conio.h commands like clrscr() ?

0

because conio.h is non-standard so not all compilers support it, and some compilers support only some functions. You's use it at your own risk of your program being non-portable to other compilers.

0

Maybe this link could help how to go about clearing the screen in a
console

You could also use a simple getchar() instead of the non-portable getch()

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.