Re: [Dev-C++] Errors reported in perfect code!
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Maan H. <mm...@pl...> - 2001-10-22 03:17:55
|
there is no cout >>
it should be: cout <<
also you should
#include <iostream.h>
because cout is in iostream class of C++ (NOT C)
Maan
----- Original Message -----
From: "Christiaan Scholtz" <ck...@ia...>
This for example:
#include <stdio.h>
int main(int argc, char *argv[])
{
cout >> "hey";
return 0;
}
gives :
c:\mydocu~1\untitl~1.cpp: In function `int main(int, char **)':
c:\mydocu~1\untitl~1.cpp:5: `cout' undeclared (first use this function)
c:\mydocu~1\untitl~1.cpp:5: (Each undeclared identifier is reported only
once
c:\mydocu~1\untitl~1.cpp:5: for each function it appears in.)
Whats going on here? I also get diffrent messages for larger code with
nothing wrong with it.
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|