I've been searching for the answer to this question, but no luck so far -
How can I input strings like
Bach, Johann Sebastian
Mozart, Wolfgang Amadeus ??
I'm sure there's a way to include spaces in a string but I'm at a loss here.
(For the inevitable 'read the FAQ' posters, please help me find it!)
fgets will read until a newline (\n) or EOF is reached.
Edit edit: This is C++; Use:
The first being compatible for char*, second for std::string's
Cool - thank you!
edit - Ah, even better! Thanks again-