Code::Blocks Forums
User forums => Help => Topic started by: Mugiwara303 on July 04, 2016, 02:49:53 am
-
hi, i was trying to get the .exe file of a simple "Hello World" projet on bin/Debug but when i double click on it it shows and disappear quickly! why it is not working? thanks in advance
-
Because it is probably a console program and this is how they work. You have to start it inside an open cmd.exe window to see its output.
-
ok thanks i get it now, is there a way to make the .exe file work and prompt the cmd console?
-
What do you mean by prompt?
-
http://www.cplusplus.com/forum/beginner/106769/
-
i mean to make the console work just by executing the .exe file
-
http://www.cplusplus.com/forum/beginner/106769/
@Mugiwara303:
Read the above link info; then, read this site rules before you post again.
http://forums.codeblocks.org/index.php/topic,9996.0.html (http://forums.codeblocks.org/index.php/topic,9996.0.html)
Tim S.
-
Add also, you can add a statement system("pause"); before the main function returns.
Sent from my iPhone using Tapatalk