📄 npoint.h
字号:
// NPoint.h
// -------------------------------------------------------------------------
// NPoint is a class for representing a set of N-dimensional points
//
class NPoint {
public:
NPoint();
NPoint(int d);
NPoint(const NPoint& p);
~NPoint();
void show();
void show(FILE* fp);
void set_value(int d, float v);
float& operator[] (int d) { return coord[d]; }
int get_dim() { return dim; }
private:
int dim;
float* coord;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -