Home > Q&A > body text
求较大者的一个题,为什么我运行以后,输入了数字按回车就自动关掉了cmd? 我用的是dev-c++
迷茫2017-04-17 14:22:47
Put a breakpoint, or try ctrl+F5
PHPz2017-04-17 14:22:47
Just switch to VS
黄舟2017-04-17 14:22:47
It is estimated that the main function exits directly after you complete the input. You should add a function like getc() before the main function finally returns to let the program hang