#include <iostream.h>
class Point
{
   int x,y;
public:
void show();
Point();
   ~Point();
}
Point::Point()
{
 x=0;
 y=0;
 cout<<"contructor\n";
}
Point::~Point()
{
 cout<<"destructor\n";
}
void Point::show()
{
 
cout<<x<<":"<<y<<endl;
}
void main()
{
 Point p;
 p.show();
}错误信息如下:
--------------------Configuration: Cpp2 - Win32 Debug--------------------
Compiling...
Cpp2.cpp
E:\vc\ClassTest\Cpp2.cpp(11) : error C2533: 'Point::Point' : constructors not allowed a return type
E:\vc\ClassTest\Cpp2.cpp(27) : error C2264: 'Point::Point' : error in function definition or declaration; function not called
Error executing cl.exe.Cpp2.obj - 2 error(s), 0 warning(s)
还望各位大侠指点迷津,帮我改一下错,要修改后的源程序,谢谢,百分相赠