User forums > Using Code::Blocks
Newby here with a question
spectrum2me:
It does pop up and disappears quickly so yeah technically I guess it runs.
BlueHazzard:
--- Quote from: spectrum2me on June 07, 2016, 03:49:51 am ---It does pop up and disappears quickly so yeah technically I guess it runs.
--- End quote ---
exactly, this is no crash, your program works as expected.....
Look at the code... after the return statement your main loop exits, and the console window closes. Codeblocks adds some convenients to the execution and keeps the console window open, but this has nothing to do with your program. If you run your program outside c::b you don't have this feature and have to add it by yourself...
https://www.google.de/?gws_rd=ssl#q=c+program+closes+immediately
Navigation
[0] Message Index
[*] Previous page
Go to full version