setw

设置输出宽度

靠左cout << left << setw(xxxx)

靠右同理

原文地址:https://www.cnblogs.com/ssNiper/p/11265546.html