A better alternative to system("pause")
CMPC :: Computing :: Programming :: C++
Page 1 of 1 • Share •
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
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 Hoard
(Yes, I totally copied Paul's avatar. Or, at least attempted to.)
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

» Special offer "VoipSwitch is just $160" VOIPAXIS
» "Don't mistake my kindness for weakness."
» What would be "gadget nirvana" for you?
» "LED Madness" Contest *Canada and usa only*
» "Name The Teamer Coach" contest
» "Don't mistake my kindness for weakness."
» What would be "gadget nirvana" for you?
» "LED Madness" Contest *Canada and usa only*
» "Name The Teamer Coach" contest
CMPC :: Computing :: Programming :: C++
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|