64,662
社区成员
发帖
与我相关
我的任务
分享
#include<iostream>
using namespace std;
int main()
{
int c;
cout<<"enter a sentence:"<<endl;
while((c=cin.get())!=eof)
cout.put(c);
return 0;
}
while(c=cin.get(), !cin.eof()) cout<<c;