⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customergroup.h

📁 数据结构
💻 H
字号:
#ifndef _customerGroup
#define _customerGroup

#include"random.h"

class customerGroup
{
 public:
	 const  int groupsize;
	 
	 customerGroup();
	 int orderSize();
};


customerGroup::customerGroup():groupsize(randgen.between(1,5))
{
}


int customerGroup::orderSize()
{
    int scoops=0;
    for(int i=0;i<groupsize;i++)
        scoops+=randgen.between(1,3);
    return scoops;
}

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -