Page 1 of 1

DJGPP sucks ?

Posted: Sun May 18, 2003 6:41 am
by newbie
Anyone helps me with this :

#include <iostream>

int main()
{
cout<<"DJGPP sucks ?";

return 0;
}

I couldn't compile this successfully and didn't know why DJGPP doesn't know "cout" ? ("cout undeclared")

how come ?

Posted: Tue May 20, 2003 8:49 pm
by Eric3k
You have to specify the namespace std;

#include <iostream>

using namespace std;

int main()
{
cout<<"DJGPP sucks ?";

return 0;
}

Or otherwise use std::cout or include iostream.h