|
|
|
|
复制本帖HTML代码
|
高亮:
今天贴
X 昨天贴
X 前天贴
X |
For formatted input/output, the file <iomanip.h> is very useful,
and we can say it is the key factor.
cout << setiosflags(ios::left); //to left-adjustify the output.
cout << setw(8) << "Hello" << endl;
The problem is solved. :) easy?
Do make yourself familiar with <iomanip.h>
Wish you a good day!
.
|
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法! |
Put your OWN COOL signature here!
|
|