[求助]C++的基本问题
# include <iostream.h>
class Poea{
public :
Poea ()
{
cout <<"白日。。。。。"<<endl;
}
~Poea (){cout<<"更上一层楼。"<<endl;}
};
void main ()
{Poea();
cout<<"与琼。。。,"<<endl;
}
请教这个程序错在哪些地方
有错,编译器是这样说的
Compiling...
2.C
d:\c的习题\2.c(2) : error C2061: syntax error : identifier 'Poea'
d:\c的习题\2.c(2) : error C2059: syntax error : ';'
d:\c的习题\2.c(2) : error C2449: found '{' at file scope (missing function header?)
d:\c的习题\2.c(10) : error C2059: syntax error : '}'
Error executing cl.exe.
2.OBJ - 4 error(s), 0 warning(s)