I cant figure out this error (c++)

ROSEBLOOD

Baseband Member
Messages
46
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:
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 :confused:

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

~ROSEBLOOD
 
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
 
Back
Top Bottom