64,676
社区成员
发帖
与我相关
我的任务
分享
std::string command;
while (std::cin >> command)
{
if ("exit" == command)
{
break;
}
}
while (true)
{
std::string command;
std::cin >> command;
std::cin.sync();
std::cin.clear();
if ("exit" == command)
{
break;
}
}