printf("%d"); 默认左对齐
printf("%-10d"); 左对齐,宽度为10,输出(默认填充空格)
printf("%10d"); 右对齐,宽度为10,输出
printf("%02d"); 右对齐,宽度为10,输出(填充0)
getline(cin, 字符串名); 读入整行字符串(包含空格)
Copyright @ 2024 dajie6 Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster