object2.h
来自「数据结构c++语言描述 Borland C++实现」· C头文件 代码 · 共 17 行
H
17 行
#ifndef Object_
#define Object_
class Object {
friend float Knapsack(int [], int [], int, int, float []);
friend float Knapsack(int [], int [], int, int, int []);
public:
operator float() const
{return d;}
private:
int ID; // object identifier
float d; // profit density
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?