Why the following c++ code keeps output “bad data, try again”?

后端 未结 6 2031
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-14 21:34
int main()
{
        int temp;
        while (cin>>temp, !cin.eof())
        {
                if (cin.bad())
                {
                        throw r         


        
6条回答
提交回复
热议问题