- 博客(1)
- 收藏
- 关注
原创 题目出现 多组测试数据,请处理到文件结束 如何处理
先示范两种最后舍弃了的: 1.网上的cin.eof() #include<iostream> using namespace std; int main(){ int s; while(!cin.eof()){ cin>>s; cout<<"1"; } return 0; } 测试结果: ^z
2018-12-24 10:07:49
7518
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人