If you compile successfully in the console program, flash back after display, you can not see the result of the situation, may be due to compiler configuration problems.
Solution:
The
Solution:
The
- project – & gt; Property – & gt; Configure properties ->; The linker – & gt; System – & gt; Subsystem – & gt; SUBSYSTEM:CONSOLE adds “/SUBSYSTEM:CONSOLE” link option. Then start execution (without debugging).
> You can also keep a console application on the console interface by using getchar or system (” pause “) at the end of the program. Do not append the final return statement. If not, exit. This will display “Press any key to continue..” or “Press any key to continue…” when running to this point. .