DJGPP sucks ?

Write here if you have problems with your C source code

Moderator: Board moderators

Post Reply
newbie
New poster
Posts: 5
Joined: Sun May 18, 2003 6:36 am

DJGPP sucks ?

Post 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 ?
ec3_limz
Learning poster
Posts: 79
Joined: Thu May 23, 2002 3:30 pm
Location: Singapore

Post 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]
Post Reply

Return to “C”