how to make a c++ terminal application wait for the user to press a key code example
Example: c++ wait for user input
cin.get() //(expected for Enter, need #include <iostream>).
cin.get() //(expected for Enter, need #include <iostream>).