OBJECT_INDEX = eChinese;(0)
NAME_INDEX = XiaoMing;(0)
map如上表述,要如何往AllScore添加一个数据,比如数据为 eChinese,XiaoMing,100
std::map<OBJECT_INDEX, std::map<NAME_INDEX, int>>AllScore;
enum class OBJECT_INDEX{
eChinese = 0,
eMath = 1,
eEnglish = 2,
eHistory = 3,
eArt = 4,
};
enum class NAME_INDEX{
XiaoMing = 0,
XiaoHong = 1,
XiaoHan = 2,
XiaoMei = 3,
};