How to remove execution related text from output window of Code::Blocks

前端 未结 2 1454
迷失自我
迷失自我 2021-01-15 03:22

I am using Code::Blocks for programming in C. When I compile my program and execute it, the output window (i.e.. Windows Command prompt) displays some execution related text

相关标签:
2条回答
  • 2021-01-15 03:57

    It only appears when you execute your code from the compiler. It does not need getch() function to stop the screen.

    But if you execute its .exe file directly, outside the compiler, you will notice that annoying message 'Process returned 0 (0x0) execution time : 3.920 s' doesn't show anymore. Moreover, you will need getch() function to stop the screen.

    0 讨论(0)
  • 2021-01-15 04:05

    Unfortunately, some things just cannot be changed, and that is one of them. There are some quirks used by some IDE's that just drive programmers crazy, but it can't be helped. There is a reason why it's there: the execution data can be used to find out whether the program worked properly (e.g. ended execution). You can use this data later when targeting execution time as one of the main focuses in coding the project. There may be other uses for it as you code more and more advanced projects.

    0 讨论(0)
提交回复
热议问题