Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 05-03-2005, 11:46 PM   #1
Baseband Member
 
ROSEBLOOD's Avatar
 
Join Date: Jun 2004
Posts: 46
Send a message via AIM to ROSEBLOOD
Default I cant figure out this error (c++)

I just got the newest version of Dev-C++, I tried compiling a little program...and it gives me a stupid error. Here is my code:
Code:
#include <iostream>

using namespace std;

int main()
{
    for(int i = 0; i <=100; i++)
    {
        cout << i << endl;
    }
    cin.get();
}
Everytime I try to compile it, it gives me this error:
Quote:
9 C:\Documents and Settings\**\My Documents\C++\print1-100.cpp ` cout' undeclared (first use this function)

9 C:\Documents and Settings\**\My Documents\C++\print1-100.cpp ` endl' undeclared (first use this function)

11 C:\Documents and Settings\**\My Documents\C++\print1-100.cpp ` cin' undeclared (first use this function)
Im confused

EDIT: It compiled fine in my old version....but not the new one.

~ROSEBLOOD
__________________

__________________
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
--Stephen Hawking (1942 - )
ROSEBLOOD is offline   Reply With Quote
Old 05-04-2005, 09:23 AM   #2
Daemon Poster
 
Tulsileaf's Avatar
 
Join Date: Jul 2004
Posts: 1,249
Default Re: I cant figure out this error (c++)

for some reason its not getting iostream...
does the compiler know where it is?
__________________

__________________
(|141 73g ()7 (|33|/| 11143s| |_| z1|-|7 (|43s| |/|4> |_| |-|0|1
Tulsileaf is offline   Reply With Quote
Old 05-04-2005, 12:16 PM   #3
Baseband Member
 
ROSEBLOOD's Avatar
 
Join Date: Jun 2004
Posts: 46
Send a message via AIM to ROSEBLOOD
Default

I figured out the problem. It didnt completely uninstall the old version. So it was reading the wrong configuration files. Thanks for the help anyways.

~ROSEBLOOD
__________________
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
--Stephen Hawking (1942 - )
ROSEBLOOD is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off



All times are GMT -5. The time now is 08:29 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0