Need help with simple C++ problem

Jamestl

Senior member
Sep 10, 2000
391
0
0
Hello, I'm writing a program for my C++ class and I've ran into some trouble. Our programs are suppose to read in a people's names and salaries and display it in a DOS window. I'm using a struct with 2 fields of APstring and INT type. I've got everything else done but can't get the output right. everyone's name is of different length and since we have to display the person's name and his/her salary on the same line, the salary output never line up correctly when using SETW(x). i'm playign with "cout.setf(ios::right|ios::showpoint|ios::fixed)" but it's not working yet. can anyone help me out on this? thanks a bunch!!