Go Back   Cyber Tech Help Support Forums > Software > Applications

Notices

Closed Topic
 
Topic Tools
  #1  
Old July 18th, 2007, 11:28 PM
rofler rofler is offline
New Member
 
Join Date: Jul 2007
Posts: 3
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  
Old July 19th, 2007, 12:05 AM
Murray S.'s Avatar
Murray S. Murray S. is offline
Cyber Tech Help Moderator
 
Join Date: May 2004
O/S: Windows XP Pro
Location: Saskatchewan, Canada
Age: 53
Posts: 12,267
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.
Closed Topic

Bookmarks

Topic Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:49 PM.

[ RSS ]