CMPC
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A better alternative to system("pause")

5 posters

CMPC :: Computing :: Programming :: C++

Go down

A better alternative to system("pause") Empty A better alternative to system("pause")

Post by Admin Mon Jan 04, 2010 1:15 pm

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
Admin
Pirate King

Posts : 559

Back to top Go down

A better alternative to system("pause") Empty Re: A better alternative to system("pause")

Post by Unchained Tue Jan 05, 2010 1:29 am

Dumbass.

Code:
cin.get();
Unchained
Unchained
Mod

Posts : 448

Back to top Go down

A better alternative to system("pause") Empty Re: A better alternative to system("pause")

Post by Admin Tue Jan 05, 2010 4:04 am

still works. dumbass
Admin
Admin
Pirate King

Posts : 559

Back to top Go down

A better alternative to system("pause") Empty Re: A better alternative to system("pause")

Post by Paul Mon Jan 18, 2010 10:40 pm

Not ALL users will understand that '>' means type something.
Paul
Paul
Pickaxe

Posts : 611

Back to top Go down

A better alternative to system("pause") Empty Re: A better alternative to system("pause")

Post by Admin Fri Feb 26, 2010 2:26 am

Paul wrote:Not ALL users will understand that '>' means type something.
That's the portion of users we call "retarded".
Admin
Admin
Pirate King

Posts : 559

Back to top Go down

A better alternative to system("pause") Empty Re: A better alternative to system("pause")

Post by Corey Fri Feb 26, 2010 3:06 am

Admin wrote:
Paul wrote:Not ALL users will understand that '>' means type something.
That's the portion of users we call "retarded".

Who are the majority of commercial software users.
Corey
Corey
Mod

Posts : 462

Back to top Go down

A better alternative to system("pause") Empty Re: A better alternative to system("pause")

Post by Unchained Fri Feb 26, 2010 9:00 am

Most software users refuse to use anything that is command line in the first place.
Unchained
Unchained
Mod

Posts : 448

Back to top Go down

A better alternative to system("pause") Empty Re: A better alternative to system("pause")

Post by Lunsfordium Tue Aug 10, 2010 5:01 am

doesn't that like completely max out your cpu for the time that it runs?
Lunsfordium
Lunsfordium
[Blankie]

Posts : 194

Back to top Go down

A better alternative to system("pause") Empty Re: A better alternative to system("pause")

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

CMPC :: Computing :: Programming :: C++

 
Permissions in this forum:
You cannot reply to topics in this forum