I am having trouble with left and right aligning my output for a project I am doing in a programming class. I have several lines of code that is meant to have an output where separate columns of numbers and words need to be justified either left or right. Here is some code from my program:
I have read about setiosflags(ios::left) and resetiosflags(ios::left) but implementing them has brought about no change in my program. So my main question is how would i go about setting a right justification for the first, third, and fourth columns while keeping the second column left justified?
If I am leaving any information out let me know and I will provide it.