测试数据有多组要不断地读入数据 直到没数据可读为止这是ACM常见的#includeusing namespace std;int a,b;int main(){ while(cin>>a>>b) //一直读入数据 无数据可读时会返回0 就跳出循环了 cout< return 0;}