I'm a relative beginner, taking a c++ class, and I'm trying to output this stream of numbers to a .txt file. I'm having no problem actually getting them into the file, but I can't figure out how to get the numbers to line up in columns or rows instead of just being one really long row (or column, if I put an endl after each one).
To put it in context, I'm using a for loop to read each of these numbers from an array one at a time, and the output to the .txt file happens inside the loop as well, so each time it iterates, it reads the next number and outputs it. How can I get this in a more printer-friendly format?
Thanks