Files
python/RuMenJingDian/Others/FillBlank.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

14 lines
433 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false); //读入输出优化的强迫症
// 输出宽度10个字符左对齐不足补空格输出3
cout << setw(10) << setfill(' ') << left << 3;
cout << "i am huanghai!" << endl;
// 输出宽度5右对齐不足补0输出10
cout << setw(5) << setfill('0') << right << 10 << endl;
return 0;
}