C programming problem  | | |
December 29th, 2005, 09:28 AM
|
#1 (permalink)
| | Junior Member
Join Date: Dec 2005
Posts: 3
|
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!  |
| |
December 29th, 2005, 09:34 AM
|
#2 (permalink)
| | Ultimate Member
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. |
| |
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. |
| |
December 29th, 2005, 09:56 AM
|
#4 (permalink)
| | Ultimate Member
Join Date: Mar 2002 Location: South Brunswick, NJ,
Posts: 1,337
|
run the application from the command line (cmd.exe) |
| |
December 29th, 2005, 09:59 AM
|
#5 (permalink)
| | Real gangstas sip on Yacc
Join Date: Oct 2001 Location: Suckas-ville
Posts: 4,552
|
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.
|
| |
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? |
| |
December 31st, 2005, 01:16 PM
|
#7 (permalink)
| | Caveat Emptor
Join Date: Mar 2005 Location: Out of my mind
Posts: 3,241
| |
| |
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. |
| |
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. . .
|
| |
January 9th, 2006, 03:24 PM
|
#10 (permalink)
| | Ultimate Member
Join Date: Mar 2002 Location: South Brunswick, NJ,
Posts: 1,337
| 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. |
| | | Thread Tools | Search this Thread | | | |
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 | | | | | Recent Discussions  | | | | | |