home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

C programming problem

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1514
Discussions: 200,952, Posts: 2,379,473, Members: 246,315
Old December 29th, 2005, 09:28 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Dec 2005
Posts: 3
C programming problem

When I run a C program, it exits the program immediately after, without any chance to see the result. Is this normal, and do I have to add in a line extra or something?

Sorry if this has been answered elsewhere, but if it was I couldn't find it.

Thanks in advance!
Mechanicus is offline   Reply With Quote
Old December 29th, 2005, 09:34 AM     #2 (permalink)
27
Ultimate Member
 
27's Avatar
 
Join Date: Jun 2004
Location: England
Posts: 1,407
You're tlking about Console Applications right?

I have the same problem using visual studio. I'd also be interested in a solution.
27 is offline   Reply With Quote
Old December 29th, 2005, 09:56 AM     #3 (permalink)
Junior Member
 
Join Date: Dec 2005
Posts: 3
I don't know what that is, but I meant the programming language C. I'm not sure if they are the same, as I've only just started learning this sort of thing.
Mechanicus is offline   Reply With Quote
Old December 29th, 2005, 09:56 AM     #4 (permalink)
Ultimate Member
 
Epyon9283's Avatar
 
Join Date: Mar 2002
Location: South Brunswick, NJ,
Posts: 1,337
Send a message via ICQ to Epyon9283 Send a message via AIM to Epyon9283 Send a message via Yahoo to Epyon9283
run the application from the command line (cmd.exe)
Epyon9283 is offline   Reply With Quote
Old December 29th, 2005, 09:59 AM     #5 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,552
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
Or add the equivalent of a getch to the end of the program.
__________________
Signatures blow hard
If your signature contains an ad of any kind, congratulations, you're on my ignore list.
jkrohn is offline   Reply With Quote
Old December 31st, 2005, 12:54 PM     #6 (permalink)
Junior Member
 
Join Date: Dec 2005
Posts: 3
While still on the subject of C, what does 'SEP' mean and what is a parse error?
Mechanicus is offline   Reply With Quote
Old December 31st, 2005, 01:16 PM     #7 (permalink)
Caveat Emptor
 
Rootstonian's Avatar
 
Join Date: Mar 2005
Location: Out of my mind
Posts: 3,241
Send a message via AIM to Rootstonian
system("PAUSE");
Rootstonian is offline   Reply With Quote
Old January 9th, 2006, 09:35 AM     #8 (permalink)
Banned
 
Join Date: Oct 2005
Posts: 752
uhg......throw em in the system32 folder ( c:\WINDOWS\system32\ ) and run em from cmd, start>run>cmd, then type name of your prog and hit enter.
towlies high is offline   Reply With Quote
Old January 9th, 2006, 03:18 PM     #9 (permalink)
Member
 
Join Date: Sep 2004
Location: Your living room...
Posts: 417
Quote:
Originally Posted by towlies high
uhg......throw em in the system32 folder ( c:\WINDOWS\system32\ ) and run em from cmd, start>run>cmd, then type name of your prog and hit enter.

uhm, why are we assuming he's using Windows?
__________________
I reserve the right to contradict myself. . .
gberz3 is offline   Reply With Quote
Old January 9th, 2006, 03:24 PM     #10 (permalink)
Ultimate Member
 
Epyon9283's Avatar
 
Join Date: Mar 2002
Location: South Brunswick, NJ,
Posts: 1,337
Send a message via ICQ to Epyon9283 Send a message via AIM to Epyon9283 Send a message via Yahoo to Epyon9283
Quote:
Originally Posted by towlies high
uhg......throw em in the system32 folder ( c:\WINDOWS\system32\ ) and run em from cmd, start>run>cmd, then type name of your prog and hit enter.

Why would you want to put them in the system32 folder? Why not just cd to the correct directory.
Epyon9283 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
c++ programming one2adore30 Webmastering and Programming 17 August 31st, 2005 08:29 PM
C++ programming HELP! TechKnickle Webmastering and Programming 3 September 19th, 2004 02:49 AM
Programming MikeHof IMO Community 6 January 18th, 2004 11:18 AM
Programming George VII General Tech Discussion 16 May 11th, 2002 03:08 PM
Programming korgul Webmastering and Programming 22 April 23rd, 2002 07:55 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
The disrespect of Obama by Russian .. (40)
Is It Just Me? (2942)
Making Health Care Worse (178)
Wireless Televisions. (12)
CPU fan stops spinning randomly (8)
windows 7 problem (7)
Regular Build (11)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (6)
Print spooler problem (15)
windows vista security holes (10)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Recent Discussions
How to Enjoy Your Favorite Videos on .. (0)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Modern Warfare 2: Who Bought It? (63)
Virus advise (8)
My monitor won't turn on after instal.. (1)
Laptop with wireless problem. (3)
Internet Lost (3)
Dept. of HS: NSA 'Helped' Develop Vis.. (16)
windows vista security holes (10)
Point and Shoot Camera Suggestions. (4)
Multiple Restarts Required at Boot (2)
Ideal cheap graph card for PC-Gaming? (18)
radeon x850xt platinum & shader 3 (6)
Graphics Card Upgrade Question (4)
For Sale BFG GTX285 OC2 with 10 year .. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Hp Artist Edition + Matching Bag (0)
Asus P4G8X Mobo (6)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
windows 7 internet problem (5)
BSOD On Startup (ntoskrnl.exe) (2)


All times are GMT -4. The time now is 02:22 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28