pause the console c++

C++
// This is only one of many ways but you can use

getchar();
Source

Also in C++: