V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
creater17
V2EX  ›  问与答

在 c 源代码的结束前一定要加上 system("pause")吗?我在 c-free 打代码时好像是不用的,怎么在 dev-c++中每次都要(要不程序输出结果后不等你反应直接退出)?

  •  
  •   creater17 · Jun 27, 2016 · 2550 views
    This topic created in 3594 days ago, the information mentioned may be changed or developed.
    longaiwp
        1
    longaiwp  
       Jun 27, 2016
    @creater17 这个是所谓的调试模式带来的问题,如果是直接执行, cmd 窗口就不会闪退的。具体你可以对比 VS 的 Ctrl+F5 和 F5 的区别
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1097 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:46 · PVG 07:46 · LAX 16:46 · JFK 19:46
    ♥ Do have faith in what you're doing.