#Understanding ifstream and operator overloading

9 messages · Page 1 of 1 (latest)

spice flumeBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

lost grove
#

with strings stop when they reach a whitespace

#

You probably want to getline into the name string

lost grove
#

now you only read "Bob" and put that into _name

#

and "the" into _email and so on

#

btw, you can >> directly into p.name

#

could you post your ostream formatting too?

lost grove
#

nice 👍

lost grove