Person1357
06-06-2007, 06:23 PM
ok so i have this simple script (I'm just learning) and i keep getting this error:
C:\Documents and Settings\*******\Desktop\C++ Scripts\Exercises1.cpp `endl' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
C:\Documents and Settings\*******\Desktop\C++ Scripts\Exercises1.cpp `end' undeclared (first use this function)
***I'm using Dev-C++ 4.9.9.2
#include <iostream>
int main()
{
int x = 5;
int y = 7;
std::cout <<endl;
std::cout << x + y << " " << x * y;
std::cout <<end;
return 0;
}
C:\Documents and Settings\*******\Desktop\C++ Scripts\Exercises1.cpp `endl' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
C:\Documents and Settings\*******\Desktop\C++ Scripts\Exercises1.cpp `end' undeclared (first use this function)
***I'm using Dev-C++ 4.9.9.2
#include <iostream>
int main()
{
int x = 5;
int y = 7;
std::cout <<endl;
std::cout << x + y << " " << x * y;
std::cout <<end;
return 0;
}