User forums > Help
Codeblocks only runs "Hello world
BlueHazzard:
--- Quote ---CodeBlocks now runs the different programs I open but it stops halfway through.
For example, I have this program:
--- End quote ---
i missed somehow your post...
--- Quote ---The program runs until the second cin, then the window suddenly closes. Why is this?
--- End quote ---
Isn't this obvious? After the last cin your program does nothing but printing the result and then closing the application... You have to tell your program to stop until the user exits the program...
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(general)#Q:_My_program_runs_in_codeblocks_but_if_i_start_it_from_the_outside_it_only_flashes_and_closes_immediately
Navigation
[0] Message Index
[*] Previous page
Go to full version