Q:

We use the same IO operators to read and write strings

0

We use the same IO operators to read and write strings:

All Answers

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

// Note: #include and using declarations must be added to compile this code
int main()
{
string s; // empty string
cin >> s; // read a whitespace-separated string into s
cout << s << endl; // write s to the output
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