Page 1 of 1

DJGPP sucks ?

Posted: Sun May 18, 2003 6:49 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: Mon May 26, 2003 1:44 pm
by ec3_limz
I couldn't compile this successfully and didn't know why DJGPP doesn't know "cout" ? ("cout undeclared")
You may want to try this.

[cpp]#include <iostream>
using namespace std;

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

return 0;
}
[/cpp]

If the above does not work, you may want to try this as an alternative.

[cpp]#include <iostream.h>

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

return 0;
}
[/cpp]