Q:

We can rewrite the previous program that wrote one word per line to write a line at a time instead

0

We can rewrite the previous program that wrote one word per line to write a line at a time instead.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

int main()
{
string line;
// read input a line at a time until end-of-file
while (getline(cin, line))
cout << line << endl;
return 0;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now