setw

设置输出宽度

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

靠右同理

猜你喜欢

转载自www.cnblogs.com/ssNiper/p/11265546.html