I don't know if this is still a live issue but the following works fine =
on bloodshed.
#include <conio.h>
#include <iostream.h>
int main()
{
cout << "Enter any key." << endl;
getche();
cout << " whatever you want to happen leave the program call a =
function??" <<endl;
getche();
return(0);
}
on microsoft visual c++ 6 the following will work.
#include <conio.h>
#include <iostream.h>
int main()
{
cout << "Enter any key." << endl;
while(!kbhit());
return(0);
}
|