无法在Google上找到答案..
当我使用std :: string时,以下工作正常.
map <fxString, int> test;
test.insert(pair <fxString, int> ("Bla", 1));
test.insert(pair <fxString, int> ("Bla", 2));
test.insert(pair <fxString, int> ("Bla", 3));
cout << fxInt2String(test["Bla"]) << endl;
Run Code Online (Sandbox Code Playgroud)
哪个应该输出1,而是输出0
当我遍历地图时,每个键值对都在那里,坐在彼此旁边嘲笑我.
fxString定义以下运算符:operator> operator <operator == operator!=
还有更多,我测试了它们..
格罗姆.
| 归档时间: |
|
| 查看次数: |
803 次 |
| 最近记录: |