第二次输出为什么这么诡异?
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int line = 6;
char ch = '*';
cout << setfill(ch) << setw(line) << ch << endl;
cout << ch << setw(line - 1) << ch << endl;
return 0;
}
https://i.loli.net/2019/04/07/5ca8d21a450f7.jpg
https://i.loli.net/2019/04/07/5ca8d21a6c3e5.jpg
头疼一个小时了 😂,希望大佬能伸出援手