What is the Best Practice for Combating the Console Closing Issue?

前端 未结 10 1693
悲&欢浪女
悲&欢浪女 2020-11-27 22:21

After compiling console programs the console window closes immediately after running. What is the best practice for keeping it open? I\'ve searched google loads, I\'m used t

10条回答
  •  -上瘾入骨i
    2020-11-27 23:00

    Since you always run in the debugger, set a breakpoint on the return statement from main().

    The debugger is your best friend, learn (and learn early) to use it to your advantage at every opportunity.

提交回复
热议问题