请问:关于c++左端对齐...
所在版块:求学狮城 发贴时间:2003-03-12 21:04

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
#include <iomanip>
......
cout<<setw(8)<<"hello"...

.....

hello总是在8字符的最右边,怎么左端对齐?

3x
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

Put your OWN COOL signature here!
 相关帖子 我要回复↙ ↗回到正文
请问:关于c++左端对齐... notice   (104 bytes , 435reads )
再问:关于c++的问题 notice   (91 bytes , 214reads )
You can try this => 魅力十足   (489 bytes , 336reads )
Ha ha ha.... A simple version => 魅力十足   (194 bytes , 282reads )
===> hobo   (89 bytes , 209reads )
被下面抢先了.... :-) hobo   (0 bytes , 164reads )
You can use <iomanip.h> => 魅力十足   (309 bytes , 335reads )