PDA

View Full Version : setw manipulator in c++


sarah
1 Jul 2005, 9:02am
hi!
i have a problem in a programe of c++ having the output like below by using setw manipulator,but i am unable to get the outpit in the desired format.

1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

mmonnin
1 Jul 2005, 4:19pm
Whats the desired format and what does it look like now?

Wrap your code in < code > </ code > tags.