#include <bits/stdc++.h> using namespace std; int main(){ for(int i = 0; i < 26; i++){ cout << (char)('a' + i); } cout << endl; printf("%.*lf ", 4, 5.123456); printf("%*.*f ", 20, 4, 1234.56); //不输出10和4而输出1234.5600 //*表示占位符 //第一个星号表示数值占的位数,第二个表示小数点保留的位数 return 0; }