search

Home  >  Q&A  >  body text

c++ - 新手学C语言,关于C程序的一个问题

求较大者的一个题,为什么我运行以后,输入了数字按回车就自动关掉了cmd? 我用的是dev-c++

迷茫迷茫2773 days ago346

reply all(3)I'll reply

  • 迷茫

    迷茫2017-04-17 14:22:47

    Put a breakpoint, or try ctrl+F5

    reply
    0
  • PHPz

    PHPz2017-04-17 14:22:47

    Just switch to VS

    reply
    0
  • 黄舟

    黄舟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

    reply
    0
  • Cancelreply