[求助].编译不能过
#include<iostream.h>
//struct Point
class Point
{
public:
int x;
int y;
/* void init()
{
x=0;
y=0;
}*/
Point()
{
x=0;
y=0;
}
Point(int a,int b)
{
x=a;
y=b;
}
~Point()
{
}
void output()
{
cout<<x<<endl<<y<<endl;
}
};
void main
{
Point Pt(3,4);
//Pt.x=5;
//Pt.y=5;
//cout<<Pt.x<<endl<<Pt.y<<endl;
// Pt.init();
Pt.output();
}