Answers for "how to pause terminal c++"

C++
0

c++ pause linux

//replaced system("pause") for linux friendly
cin.ignore; //if you have newline before this line, then you should add this(or just use it because why not?)
cin.get(); // waits for a character (or just waits for your enter)
Posted by: Guest on March-22-2021
0

pause the console c++

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

getchar();
Posted by: Guest on June-24-2020

Browse Popular Code Answers by Language