书写程序的格式问题
#include <iostream.h>#include <math.h>
class Point
{
private:
int X,Y,Z;
public:
Point(float a, float b, float c)
{
X=a;
Y=b;
Z=c;
}
float Getx(){return X;}
float Gety(){return Y;}
float Getz(){return Z;} //unknown character '0xa1' 一直显示这里有格式上的错误,这是为什么呢?
};
class Line:public Point
{
private:
.....
public:
.....
{
m=d;
}
void show()
{
....
}
};
void main()
{
Line A(4.5,6.5,8.5,9.5);
A.show();
}