C++ beginner, execution window disappears quickly

前端 未结 7 1808
我寻月下人不归
我寻月下人不归 2020-12-11 11:50

I am a beginner in C++ and I was trying to write a program that finds the average of two numbers, but when I run the program, the window disappears without allowing me to se

7条回答
  •  萌比男神i
    2020-12-11 12:39

    Put a breakpoint at your return statement. It won't stop on an uncaught exception but that can be fixed with a try/catch block at the outermost part of main.

提交回复
热议问题