C++ cout
cout.flush()
cout.put()
输出一个字符
char* p = "hello";
cout.write(p,sttrlen(q)-3)
输出字符串,能够选定长度。二进制流输出
cout<<"<Start>"
cout.width(30)//插入30个字符
cout.fill(‘*’)//填充*
cout.setf(ios::showbase)//基数 #include<iomanip>
cout.setf(ios::internal)//设置中间
cout<<hex<<123<<"<End>\n"