程序运行正确,但是怎么输入多组数据;while里的1控制条件是什么意思
收起
while(cin >> x >> y)在while里加一个判断 if(x == 0 && y == 0) break;就行了
报告相同问题?