printf(“%*s”,name);
星号可以直接替换为int型常量,如printf(“%6s”,name);
也可以用这种方法 printf(“%*s”,10,name);
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3