64,648
社区成员
发帖
与我相关
我的任务
分享
buf[80] = {0};
while(cin.get(buf,80))//只输入超过回车符符,将不进入循环~
{
cout<<"进入"<<endl;
}
char buf[80] = {0};
while(cin.getline(buf,80))
{
cout<<"进入"<<endl;
}
char buf[8] = {0};
while(cin.getline(buf,8))//输入超过8的字符,将不进入循环~
{
cout<<"进入"<<endl;
}