C++ ?????

Novel

Well-Known Member
Joined
Nov 8, 2010
Messages
156
Reaction score
0
Location
Durban
Hi everyone,

I'm new to programming. I'm currently using c++ but I'm having a problem which needs an xpect. When I run my program, the screen disappears b4 I can read the output. Am I doing sumthing wrong? Plz help.


Sent from my HTC Sensation Z710e using MyBroadband Android App
 
Is it a console app?
If so, run it from cli.
Also insert some cout statements at regular intervals so u can find out which line is giving u the problem.

Sent from my HTC Desire using MyBroadband Android App
 
I take it your doing this under windows. Just make sure there is no whitespace at the end of your folder names, this is the most common cause (99,9%) for this to happen. Go to your folder in explorer, then press F2 and remove any trailing spaces.

If this does not resolve the issue, then try it again and again. Also get into the habit of not having spaces in folder names (use underscores _ instead)

* This is the most common problem experienced with UNISA C++ students
 
What IDE are you using ?

You probably need a "system("pause");" at the end of your code
 
I code in C, but it sounds like you're missing:
Code:
 system("PAUSE");
at the end of your code
 
Yes, I'm running (Div-C++ from bloodshed) on widows 7. How do I get a system pause?


Sent from my HTC Sensation Z710e using MyBroadband Android App
 
Last edited:
I take it your doing this under windows. Just make sure there is no whitespace at the end of your folder names, this is the most common cause (99,9%) for this to happen. Go to your folder in explorer, then press F2 and remove any trailing spaces.

If this does not resolve the issue, then try it again and again. Also get into the habit of not having spaces in folder names (use underscores _ instead)



* This is the most common problem experienced with UNISA C++ students

I tried, but It's not working.


Sent from my HTC Sensation Z710e using MyBroadband Android App
 
Last edited:
I tried, but its not working.

Sent from my HTC Sensation Z710e using MyBroadband Android App
 
Top
Sign up to the MyBroadband newsletter
X