A better alternative to system("pause")
5 posters
CMPC :: Computing :: Programming :: C++
Page 1 of 1
A better alternative to system("pause")
- Code:
#include <iostream>
using namespace std;
void wait()
{
cout<<"\nPress Enter to continue.\n";
cout<<">";//just to let the user know he needs to type something
cin.ignore(1);//gets 1 character input and ignores it.
}
Admin- Pirate King
- Posts : 559
Re: A better alternative to system("pause")
Not ALL users will understand that '>' means type something.
Paul- Pickaxe
- Posts : 611
Re: A better alternative to system("pause")
That's the portion of users we call "retarded".Paul wrote:Not ALL users will understand that '>' means type something.
Admin- Pirate King
- Posts : 559
Re: A better alternative to system("pause")
Admin wrote:That's the portion of users we call "retarded".Paul wrote:Not ALL users will understand that '>' means type something.
Who are the majority of commercial software users.
Corey- Mod
- Posts : 462
Re: A better alternative to system("pause")
Most software users refuse to use anything that is command line in the first place.
Unchained- Mod
- Posts : 448
Re: A better alternative to system("pause")
doesn't that like completely max out your cpu for the time that it runs?
Lunsfordium- [Blankie]
- Posts : 194
Similar topics
» Get a Jump Start on your "Senior Project"!
» What exactly is "light" web browsing?
» My "To Do" list
» Der Ranking System
» New Reputation System (Rep)
» What exactly is "light" web browsing?
» My "To Do" list
» Der Ranking System
» New Reputation System (Rep)
CMPC :: Computing :: Programming :: C++
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|