摘要: 1.flush 刷新缓存,endl刷新缓存并换行 cout<<"Hello"<<flush; cout<<"Wait<<endl; 2.hex,oct,dec 输出16进制,8进制,10进制 cout<<hex cout<<oct cout<<dec 3.使用width调节宽度 cout.width 阅读全文
posted @ 2024-09-01 13:54 zhongta 阅读(14) 评论(0) 推荐(0)