for (i = 0; i < Max; i++) { cout << "round #" << i + 1 << ": "; while (!(cin >> golf[i])) { cin.clear(); while (cin.get() != '\n') continue; cout << "Please enter a number: "; } }
汉娜之眼
相关分类