In a program, a big string of characters may appear when executed, you can't see it at all.
At this time, you can pause one or two simple functions, wait for you to knock back, let the program continue to execute, let's see how we implement:
1, under the Windows system platform
You can call SYSTEM ("PAUSE"); need to include Windows.h
However, this is to call this function under the W platform.
2, under standard C
Oh, simple
cin.get ();
Like above, it is also waiting for you to knock in any health.
If you want the program to wait after a break, OK is OK.
There is a better below!
Sleep (1000); // Pause 1000 milliseconds (ie 1 second). This function is often used, you want to include Windows.h header files