this is the code::
#include <iostream>
class cls
{
int i;
public:
cls()
{
cout<<"cls set up "<<endl;
}
~cls()
{
cout<<"cls over"<<endl;
}
};
main()
{
cout<<"start"<<endl;
{
cls test;
}
cout<<"end"<<endl;
return 0;
}
this is error message::
class1.cpp: In constructor 'cls::cls()':
class1.cpp:9:'cout' undeclared(first use this function)
class1.cpp:9

Each undeclared identifier is reported only once for each function it appears in.)
class1.cpp:9:'endl' undeclared(first use this function)
how can i do ?????
if i change the "#include <iostream>" with the "#include <iostream.h>",it will pass! but why???