Q:

We can write a similar program that reads strings instead

0

We can write a similar program that reads strings instead:

All Answers

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

int main()
{
string word;
while (cin >> word) // read until end-of-file
cout << word << endl; // write each word followed by a new line
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