- Joined
- May 10, 2009
- Messages
- 12
- Reaction score
- 5
Do you use dev C++ and are always tired of having to put system("pause"); every single time you want to pause? No need to fret anymore! With my tiny library (i guess you can call it that) you will be pausing in no time!!!
sP= regular system pause
ssP= silent system pause
csP= coder input system pause
The way you use csP is instead of the same old boring "Press any key to continue", you can make it say "BAI!!!" or whatever. Just declare&init a string and pass it when you call csP(). And no need to endl before calling csP()!
Im a beginner and i JUST learned how to make headers so give me a break!
Name this pause.h and dont forget to include it in your preprocessor ****.
Code:
#ifndef PAUSE_H
#define PAUSE_H
#include <iostream>
using namespace std;
//void sP();
//void ssP();
void sP(){
system("pause");
}
void ssP(){
system("pause>nul");
}
void csP(string phrase){
cout<<endl<<phrase<<endl;
system("pause>nul");
}
#endif
sP= regular system pause
ssP= silent system pause
csP= coder input system pause
The way you use csP is instead of the same old boring "Press any key to continue", you can make it say "BAI!!!" or whatever. Just declare&init a string and pass it when you call csP(). And no need to endl before calling csP()!
Im a beginner and i JUST learned how to make headers so give me a break!
Name this pause.h and dont forget to include it in your preprocessor ****.

