If the amount of data is unknown, the following loop is useful in c++:
while (cin >> x) {
// code
}
while (cin >> x) {
// code
}
»
Timur_Keks
|
7 years ago,
#
|
←
Rev. 2
→
+4
→
Reply
|