Page 1 of 1

By seeing which operator thus this C++ program stops getting the input?

Posted: Wed Jul 13, 2022 7:53 pm
by answerhappygod
#include <iostream> #include <fstream> using namespace std; int main () { char ch; streambuf * p; ofstream os ("test.txt"); pbuf = os.rdbuf(); do { ch = cin.get(); p -> sputc(ch); } while (ch != '.'); os.close(); return 0; }
a) dot operator
b) insertion operator
c) $ symbol
d) @ symbol