顿开教育学习笔记
C++IO流
通过#include 提供的控制符,进行输入输出格式控制
1234567891011121314151617181920212223242526272829#include <iostream>#include <iomanip>#include <string>using namespace std;int main(){ cout << "1" << endl; cerr << "标准错误" << endl; clog << "标准信息" << endl; cout.put('a'); cout.put('\n'); //不够不空格,多了就截取 cout.write("LOVEYOU\n", 10); // 10可现实元素个数 bool b = 1.1; cout << boolalpha << b &l ...