struct INST{
string name;
string type;
string func;
};
map<string, INST> transTable = { //can not be const
{"000000000000",{ .name="sll", .type="R", .func="逻辑左移" }},
{"000000000011",{ .name="sra", .type="R", .func="算术右移" }}
};
原文:https://www.cnblogs.com/friedCoder/p/12309194.html