|
-
May 4th, 2002, 03:07 PM
#1
Thread Starter
Frenzied Member
"press enter to continue"
in a console app, how can that be done
retired member. Thanks for everything 
-
May 4th, 2002, 03:11 PM
#2
Frenzied Member
cout<<"Press any key to continue..."<<endl;
getch();
I think getch is in conio.h
-
May 4th, 2002, 08:22 PM
#3
Lively Member
try this ...
#include <iostream.h> //used for cout/cin
#include <stdlib.h> //needed for system pause
int main()
{
cout<<"Welcome to my program"<<endl;
system("pause");
return 0;
}
-
May 5th, 2002, 03:43 AM
#4
Addicted Member
me thinks the 'system("pause")' is used in bloodshed c++, i remember trying it in VC and it didnt work
strange, because I've used it in VC++ and it worked perfectly.
-
May 5th, 2002, 05:06 AM
#5
Monday Morning Lunatic
Re: try this ...
Originally posted by slx47
#include <iostream.h> //used for cout/cin
#include <stdlib.h> //needed for system pause
int main()
{
cout<<"Welcome to my program"<<endl;
system("pause");
return 0;
}
It should be <iostream> and <cstdlib>, followed by the correct using statements
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|