Compiler: dev--c ++
A class object is defined globally.
I used to return 0 in the main function; I added cin before the statement, but the global object is destructed after main is executed. What should I do?
Execute the program in the command line window, do not execute in the integrated compilation environment.
-------------------------------------------------- -----------
How do I execute a program in a command window?