I have to write a program that reads in a text file that has messy formatting and reformat it to look nice per my teacher's instructions. Some lines in the text file are to be left alone though. I'm pretty new to C++ and I really don't even know where to start with this. Could anyone point me in the right direction? Here is an example of an input text file:
I'm supposed to change the format to look nicer by adding spaces and justifying things and such. Any help on how to do this would be appreciated. Thanks
Ok. I get what you're saying. I have an example of what my output should look like, but when I copy and paste it it looks just like the one above. Basically I don't need to change the first 5 lines at all. I need to format the players to look more like this:
1 Savannah Letitia / Alyssa Mia Convivial 161.96 56.63 0.91(A)
2 Emily Prod / Logan Nimbus 161.96 56.63 0.91(A)
3 Molly Poultice / Ledasha Winnie 121.88 42.62
4 Tristan Incomplete / Layla Morgan Esq 171.71 60.04 1.30(A) - Winner
5 Charlie Anthony Fink / Xavier Together 121.33 42.42
Rather than being all mushed together like in the messy example. The lines below the players will be formatted similarly with everything lining up vertically. Any clues on how I would do this?