实例化对象有问题
This commit is contained in:
17
test/STL.h
17
test/STL.h
@@ -21,11 +21,27 @@ static std::map<std::string, std::map<int, std::string>>StringArr_STL;
|
||||
static std::map<std::string, std::map<int, bool>>BoolArr_STL;
|
||||
|
||||
|
||||
//构造 抽奖 类型容器
|
||||
struct Dargonresult
|
||||
{
|
||||
int ItemIndex;
|
||||
int ItemNum;
|
||||
int ItemGrade;
|
||||
};
|
||||
struct DargonMap
|
||||
{
|
||||
int LuckyValue;
|
||||
Dargonresult Result[10];
|
||||
};
|
||||
static std::map<std::string, DargonMap>DargonState_STL;
|
||||
static std::map<std::string, int>DargonModel_STL;
|
||||
|
||||
static std::map<int, int>aod;
|
||||
static std::map<int, float>bod;
|
||||
static std::map<int, std::string>cod;
|
||||
static std::map<int, bool>dod;
|
||||
|
||||
|
||||
class STL
|
||||
{
|
||||
private:
|
||||
@@ -33,6 +49,7 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//查询指定容器是否存在
|
||||
static int Check_STL(std::string name,int Type,int idx = 0);
|
||||
//static int Check_STL_Idx(std::string name,int idx);
|
||||
|
||||
Reference in New Issue
Block a user