如果文件有一个坐标列表和一个字符:
(1,2,3,A)
// blah blah
(10,20,30,B)
(11,22,33,C)
循环中的表达式while
永远不会计算为真,这是为什么呢?
string str = "";
char aa, cc, ee, gg, hh, ii;
int bb, dd, ff;
while(cin >> aa >> bb >> cc >> dd >> ee >> ff >> gg >> hh >> ii ||
cin >> str) {
if(str != "") {
cout << str << endl;
}
else {
cout << aa << " " << bb << " " << cc << " " << dd << " " << ee << " " << ff << " " << gg << " " << hh << " " << ii << endl;
}
}