Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 07-25-2005, 10:59 PM   #1 (permalink)
Newb Techie
 
Join Date: Jun 2005
Posts: 21
Default Problem with running c++

Hello everyone!

I have a lil' problem with running c++, as in it eats up all my CPU. Why? My OS is Windows XP, btw.

I used it on windows 98 and it worked just fine, so what can be wrong?

Thanks in advance!
WildRose is offline   Reply With Quote
Old 07-26-2005, 09:33 AM   #2 (permalink)
Ultra Techie
 
Join Date: Sep 2003
Location: Bamberg, Germany
Posts: 549
Send a message via ICQ to Iron_Cross Send a message via MSN to Iron_Cross Send a message via Yahoo to Iron_Cross
Default

Post the code you're using...there is absolutly no way for us to tell without seeing the code
For all we know you could be in an endless loop or something :P
__________________

See today\'s Penny-Arcade!(May contain foul lanuage)
Pain is weakness leaving the body.

PM Me for my MSN
Iron_Cross is offline   Reply With Quote
Old 07-27-2005, 03:57 PM   #3 (permalink)
Newb Techie
 
Join Date: Jun 2005
Posts: 21
Default

Ahem Iron_Cross the problem isn't with a running a code in c++, the problem is with running c++ . When i launch it, it "eats up" all of my CPU. And, god, i hate endless loops. :P
WildRose is offline   Reply With Quote
Old 07-28-2005, 09:24 AM   #4 (permalink)
Ultra Techie
 
Join Date: Sep 2003
Location: Bamberg, Germany
Posts: 549
Send a message via ICQ to Iron_Cross Send a message via MSN to Iron_Cross Send a message via Yahoo to Iron_Cross
Default

You never know, it could be the code you're running, considering the fact that the code is using CPU resources. Also considering that when you "run C++" you're just running the code.
But if you're absolutly 100% without-a-doubt certain that it's not the code, what IDE are you using...if any?
Iron_Cross is offline   Reply With Quote
Old 07-28-2005, 10:10 AM   #5 (permalink)
Monster Techie
 
Chankama's Avatar
 
Join Date: Jan 2005
Location: Canada
Posts: 1,524
Default

I think what WildRose means is that when he starts the environment, before running any compiled code, it eats up the resources. Yup please do post what IDE u are using.
Chankama is offline   Reply With Quote
Old 07-28-2005, 10:53 AM   #6 (permalink)
Ultra Techie
 
Join Date: Sep 2003
Location: Bamberg, Germany
Posts: 549
Send a message via ICQ to Iron_Cross Send a message via MSN to Iron_Cross Send a message via Yahoo to Iron_Cross
Default

You also might want to post your system specs
Iron_Cross is offline   Reply With Quote
Old 07-28-2005, 11:27 AM   #7 (permalink)
Newb Techie
 
Join Date: Jun 2005
Posts: 21
Default

Thank you guys, i should've thought about that. Well, here are my system specs
A dumb old computer, btw, but it's good for now, it's a Dell, 1 ghz intel pentium processor, 256 mb ram, 20 gb hdd. There ya go.

Someone told me that there's some special setting you have to change in xp, but i'm clueless.

Suggestions?
WildRose is offline   Reply With Quote
Old 07-28-2005, 01:24 PM   #8 (permalink)
Ultra Techie
 
Join Date: Oct 2003
Posts: 544
Default

We dont quite understand what you mean by running c++. C++ is a programming language and so you cannot run it as such, you can run applications written in C++ but it seems this is not what you mean. Or do you mean, as Chankama interpreted it, your IDE (program for writin C++ code) is eating all of your CPU, if so what IDE are you using?
fitzjj is offline   Reply With Quote
Old 07-28-2005, 01:48 PM   #9 (permalink)
Newb Techie
 
Join Date: Jun 2005
Posts: 21
Default

My bad! As Chankama said, the problem is with the IDE, as you call it which is Borland C++ for DOS (anything else to it i dunno about?).

P.S. I'm a she, not a he Chankama
WildRose is offline   Reply With Quote
Old 07-28-2005, 04:05 PM   #10 (permalink)
Ultra Techie
 
Join Date: Sep 2003
Location: Bamberg, Germany
Posts: 549
Send a message via ICQ to Iron_Cross Send a message via MSN to Iron_Cross Send a message via Yahoo to Iron_Cross
Default

I would hope you're a she :P WildRose is not really a masculine name, haha.

So how do you know it's eating up your memory, how much is it taking up? Because if you told us your specs right, then your computer should have no problem at all running that IDE....
Iron_Cross is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:51 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0