#pragma once
#ifndef_PIONT_H
#define_PIONT_H
class Piont {
public:
Piont(float x = 0,float y =0 ):x(x),y(y){}
float getX() const { return 0; }
float getY() const { return 0; }
private:
float x, y;
};
#endif//_PIONT_H
#ifndef _PIONT_H
#define _PIONT_H
#endif // _PIONT_H
不应该挨着吧(ifndef和_PIONT_H)中间有空格应该。