"n"不会终止setw的计算 endl会
实际场景 代码1#include效果1using namespace std; cout.setf(ios::left); cout << setw(10) << "第一行n"; cout << "第二行";
第一行 第二行代码2
#include效果2using namespace std; cout.setf(ios::left); cout << setw(10) << "第一行" << endl; cout << "第二行";
第一行 第二行



