📄 bin.h
字号:
#ifndef BIN_H
#define BIN_H
class BIN
{
public:
BIN(float c)
{
capacity = c;
used_capa=0.0;
Nbre_article = 0;
}
float Getused(){
return used_capa;
}
float Getreste(){
return rest_capa;
}
void Setused(float p){
used_capa += p;
rest_capa = capacity-used_capa;
}
void reinitial()
{ used_capa = 0.0;
rest_capa = capacity;
Nbre_article = 0;
}
int Nbre_article;
float capacity;
float used_capa;
float rest_capa;
private:
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -