| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
My command prompt is broken!
I wrote a c program and compiled it using the dev c++ with no errors. I ran it and as soon as i pressed enter it closed on me. So then I thought it was my compiler. So I tried using microsoft visual c++ the same thing happend as soon as i pressed enter the command prompt closed. I then sent the code to my firend and had him put it in his compiler. It worked fine. So I think my command promt is broken, Does anyone know how i would fix this problem?????
|
|
#2
|
|||
|
|||
|
what does your code look like?
|
|
#3
|
|||
|
|||
|
try a:
system("pause"); at the end of your program right before your return 0; |
|
#4
|
|||
|
|||
|
is that the whole program? show us the whole program...
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > My command prompt is broken! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|