Is there an output equivalent to getline(cin, x) on C++?
<p>I like how getline(cin, x) works for reading stuff. Unlike cin >> x, it doesn't mess up the buffer and it seems to allow European characters like á, é, etc too.
I was just wondering if there's an output equivalent to this, because cout &lt;&lt; x doesn't allow European characters and maybe there's a better option than that.</p>
