Is there a Visual C++ equivalent to Borlands:
conio.h
getch()
to keep a console program from closing at the end of execution???
I saw another post here that uses a request for a dummy variable, but I was hoping for a better method than that.
Any help appreciated!!!
Borland getch() equivalent in Visual C++
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact:
What, you don't like my hack?
Well, I decided to ask an old friend (google) what they thought and here's what I found.
#include <stdio.h>
ought to have a getchar() function
#include <stdlib.h>
also has a system ("PAUSE");
I don't have 6.0 installed anymore so I can't actually test it but it seems probable.
Well, I decided to ask an old friend (google) what they thought and here's what I found.
#include <stdio.h>
ought to have a getchar() function
#include <stdlib.h>
also has a system ("PAUSE");
I don't have 6.0 installed anymore so I can't actually test it but it seems probable.
I choose to fight with a sack of angry cats.