|
#1
|
|||
|
|||
|
C executable files
Hello, this is my first post
![]() I am having this problem whenever I open up a very basic executabe file. I want to program in C and languages as such, but whenever I open up an executable file without some kind of loop to keep it open, it will immediately close at the end of the program before you can read the output. #include <stdio.h> main() { printf("hello, world\n"); } Will not work, it will close immedatly after printing hello world. However, it will stay open when asking for prompts. I'm just asking how would you make it so that an executable window stays open AFTER the final display shows, without putting a pause function in there. Thanks a bunch, Rofler |
|
#2
|
||||
|
||||
|
Closed. Duplicate thread.
Murray
__________________
Microsoft MVP 2008: 2009: Windows - Shell/User Please do not PM me or email me asking for support. Post on the forums instead so everyone can gain from the solution. Patience is a virtue--yes your problem is urgent, but so are the problems of the other members. Our time spent at CTH is free, but hosting CTH costs money. Help us help you, and donate here. |
![]() |
| Bookmarks |
«
Previous Topic
|
Next Topic
»
| Topic Tools | |
|
|
All times are GMT +1. The time now is 12:49 PM.
[
RSS ]








