Tutorial C ++ Google Code University dulu memiliki kode ini: // Description: Illustrate the use of cin to get input // and how to recover from errors. #include <iostream> using namespace std; int main() { int input_var = 0; // Enter the do while loop and stay there until either // a...
86
Mengapa kita memanggil cin.clear () dan cin.ignore () setelah membaca masukan?