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

Code Example 1

#include <Windows.h>

int main() {
	//do stuff
	system("Pause");
}

Learn ReactJs, React Native from akashmittal.com