摘要:
转自:http://blog.csdn.net/ididcan/article/details/4501529如何设置cout的输出格式(转)编程笔记设置cout的输出格式有两种办法,一种是用cout的成员变量,一种是用<iomanip>里面提供的函数比如要设置输出的行宽,就有两种方法:#include<iostram>
#include<iomanip>
using namepsace std;
void main(){ // using str::width() cout.width(20); cout<<12<<endl; // 阅读全文
posted @ 2013-04-22 14:12
永不止步,永无止境
阅读(1315)
评论(0)
推荐(0)

浙公网安备 33010602011771号