C++ cout << “\n“与 cout << endl的一个区别
摘要:一句话概括 "\n"不会终止setw的计算 endl会 实际场景 代码1 #include <iostream> using namespace std; cout.setf(ios::left); cout << setw(10) << "第一行\n"; cout << "第二行"; 效果1 第一
阅读全文
posted @ 2021-11-05 10:54