C++ beginner, execution window disappears quickly

前端 未结 7 1826
我寻月下人不归
我寻月下人不归 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:26

    Include this header:

    #include 
    

    And add a call to getchar() before you return:

    cout << answer<

提交回复
热议问题