这个电脑也不能运行啊?
14.#include <iostream.h>
class Tpoint
{
int x , y;
pubic:
Tpoint (int x1,int y1)//构造函数 error C2144: syntax error : missing ')' before type 'int'
{
x=x1;y=y1;
}
void dispoint()
{
cout <<"("<< x << "," << y << ")" << endl;
}
};
void main()
{
Tpoint a(12,6), *p=new Tpoint(5,12);
cout <<"First point=>";
a.dispoint();
cout <<"Second point=>";
p->dispoint();
}