Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Який шаблон коректний для читання чисел до кінця вводу?
int x; do { std::cin>>x; } while(true);
int x; while (!std::cin.eof()) { std::cin>>x; }
int x; while (std::cin >> x) { /* ... */ }
Правильна відповідь відсутня
int x; while (std::cin) { std::cin>>x; }
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!