摘要: #include<iostream> int main(){ using std::cout; cout.setf(std::ios::left); int w = cout.width(); cout << "default field width = " << w << "\n"; cout.w 阅读全文
posted @ 2020-03-10 18:28 安之若醇 阅读(6122) 评论(0) 推荐(0) 编辑
摘要: 头文件<iomanip> 注意他是对其后面的字符设定宽度的. 举例: 1 cout << 1234 << setw(7) << 1234 << 12345 << endl; 2 cout << 1234 << setw(3) << 12345 << endl; 输出:1234 123412345(第 阅读全文
posted @ 2020-03-10 17:30 安之若醇 阅读(735) 评论(0) 推荐(0) 编辑
摘要: 进入setting 搜索code style 如果是c++ /c 选择这个选项点开 wrapping and brace 里面 有brace placement 选择你想要的方式 阅读全文
posted @ 2020-03-10 16:55 安之若醇 阅读(613) 评论(0) 推荐(0) 编辑
Live2D服务支持