c++ wait for user to hit enter code example Example: c++ wait for user input cin.get() //(expected for Enter, need #include <iostream>).