Check out example codes for "c++ wait for user input". It will help you in understanding the concepts better.

Code Example 1

cin.get() //(expected for Enter, need #include <iostream>).

Learn ReactJs, React Native from akashmittal.com