Im trying to print 3 fields equally separated on the cout stream. i tried putting a tab between each field but because they are all different lengths i lose formating. im trying to print like a grid.
i tried setw(10). this worked similar to '/t' and the output was staggered. also im trying to do it via friend output << operator.
each class defines << operator
so i can do something like
1 2
cout << firstline << endl; // prints field1 field2 field3
cout << secondline << endl;// prints field1 field2 field3