C++如下 string s=""; while(cin>>s) ; 如果s的长度为0,那输入就是空的 也可以考虑用getline
点赞 评论

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务