On Windows:
system("pause");
and on Mac and Linux:
system("read");
will output “Press any key to continue…” and obviously, wait for any key to be pressed.
I hope thats what you meant
More Related Contents:
- C++ Looping / Array
- Is there a way to create a c++ gui game without win32 api, openGL, direct X and stuff? [closed]
- Why is sizeof giving incorrect number of bytes in C++?
- Where to use empty character constant ” in C++? [closed]
- Changing the object a pointer points to in c++
- Address of an array
- What exactly is a type cast in C/C++?
- What does the standard library guarantee about self move assignment?
- Count character occurrences in a string in C++
- gcc/g++: “No such file or directory”
- C++ Filehandling: Difference between ios::app and ios::ate?
- Mesh class called with default constructor not working OpenGL C++
- How to initialize 3D array in C++
- Self-initialization of a static constexpr variable, is it well-formed?
- Are notes and examples in the core language specification of the C++ Standard non-normative?
- Explanation of function pointers
- Detect Windows or Linux in C, C++ [duplicate]
- Do these members have unspecified ordering?
- Check traits for all variadic template arguments
- Has the new C++11 member initialization feature at declaration made initialization lists obsolete?
- Using boost::iostreams::mapped_file_source with std::multimap
- C++ Return value, reference, const reference
- How to effectively kill a process in C++ (Win32)?
- Returning non-const reference from a const member function
- array of pointers as function parameter
- Should std::unique_ptr be permitted
- How to sleep or pause a PThread in c on Linux
- Decorator pattern in C++
- How to handle a ctrl-break signal in a command line interface
- How to get file extension from string in C++