I need to use C++ to read in text with spaces, followed by a numeric value.
For example, data that looks like:
text1
1.0
text two
2.1
text2 again
3.1
can't be read in with 2 "infile >>"
statements. I'm not having any luck with getline
either. I ultimately want to populate a struct
with these 2 data elements. Any ideas?