title: How to change newline button to space to finish reading from input stream?
body: <p>I need to read a row of symbols from input stream without going to new line after reading each symbol. More precisely, I need to change hitting the "Enter" button to "Space" after reading each new symbol. Is there a way to do it without reading all row to a string and parsing string after that? Any options are acceptable, like scanf, cin.</p>