最赞回答 / libai2016
for(;itor!=m.end();itor++){}这样是提交不了的,必须写成类似这样的代码for(itor;itor!=m.end();itor++){}
2016-01-23
最赞回答 / onemoo
你重载的加法运算符没做什么事啊:没有改变加法的第一个操作数—— m_iX=+m_iX; 这样的代码不是什么都没做吗!?还直接返回了第二个操作数所以 coor3 = coor1 + coor2; 这句就直接把coor2赋值给了coor3,而coor2之前被自减为(1, 3),所以coor3也是(1, 3)。这是你想要的行为吗?你的加法运算符是不是想要将两个坐标加起来?也许应该写成这样:<...code...>
2016-01-16
亲,提交不了这通过
main
cout << "3" << endl;
cout << "6" << endl;
cout << "8" << endl;
cout << "4" << endl;
cout << "S" << endl;
cout << "Shang Hai" << endl;
cout << "B" << endl;
cout << "Bei Jing" << endl;
cout << "G" << endl;
cout << "Guang Zhou" << endl;
retn 0
main
cout << "3" << endl;
cout << "6" << endl;
cout << "8" << endl;
cout << "4" << endl;
cout << "S" << endl;
cout << "Shang Hai" << endl;
cout << "B" << endl;
cout << "Bei Jing" << endl;
cout << "G" << endl;
cout << "Guang Zhou" << endl;
retn 0