vc中怎么定义一个点的类
来源:百度知道 编辑:UC知道 时间:2024/05/22 01:42:40
GDI中有POINT结构,还有相应的很多API函数。
MFC中有CPoint类,在使用POINT的地方也可以使用CPoint。
不用自己去定义了。
class Point
{
private:
int x;
int y;
//other attributes
public:
//your member functions
};
MFC中有相关的类,CPoint。你可以参考下里面的有哪些属性和方法。