Hey guys.... i've never posted here before, but everytime i need some c++ help, google takes me here, so i figured i'd give it a shot....i'm posting about homework for a class.
this is a pretty newbie question.....
anyways....we had to input data from a file...unkown number of rows...manipulate the numbers....then output all the data...i wrote my program..it works perfectly, but i have to display the the results ....which are 4 numbers/words per row....and have to make em line up nicely in a column.
I tried using the setw command, but my data doesn't line up if any 1 of the numbers in 1 row has a different number of digits in another...basically...
1 2 3
5 6 7
12 34 56
that happens
is there a different command i can use???
thanks