I am working on a input .txt file. I am getting all my information to come up, but just not in rows and columns like is should. Here is my program so far. I just need the data to be understood better and more organized. Please Help. Thanks for time.
Also please use codetags when posting code to the forum (Hint: Highlight all the code your pasted to the forum and click the <> button under Format:), it makes your code much easier to read and will probably get more answers since a lot of people won't take the time to read non formatted code.
Well, I can think of a couple of different ways to handle that data. The first is to simply read the file a whole line at a time, using getline(). And then use cout to display each line. Job done.
Another way is to read the first line using getline().
Read the second line as four separate strings. Display them as you wish.
The remaining lines, read as four separate integers each time. Display them as required.