Posted by: kaloVale February 10, 2009
help needed computer geeks!!
Login in to Rate this Post:     0       ?        
hey guys, how to align the integers in right order in visual c++.
I have a matrix to print out with right alignment.I can print out the matrix but the integer values donot align in the right order.
for example | 1  10  -8|
                   | 12 2  3   |
this is what my code does, which is straight forward 
 but the result should be   | 1  10  -8|
                                      |12    2    3| which is more prettier
I know setw() fuction. But I am not able to get it right. Am I not using setw() correctly?
                                                                                         
Read Full Discussion Thread for this article