📄 point.h
字号:
// Point.h: interface for the Point class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_POINT_H__65115002_CDB1_4697_BCCB_006F8126FFCE__INCLUDED_)
#define AFX_POINT_H__65115002_CDB1_4697_BCCB_006F8126FFCE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <math.h>
class Point
{
public:
Point(int _x,int _y);
virtual ~Point();
int x,y;
float cal_dist(Point& ) const;
float cal_dist(Point&) ;
int get_y() const;
int get_x() const;
void set_x(int) ;
void set_y(int) ;
// 仅供测试
const int center_x;
const int center_y;
const static Point center;
};
#endif // !defined(AFX_POINT_H__65115002_CDB1_4697_BCCB_006F8126FFCE__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -