真的只有一丢丢
#include <stdio.h>
#include <string.h>
int main()
{
printf("%*s\n",5,"ss");
printf("%5s\n","ss");//这一句和上一句是一个意思
printf("%*d\n",10,1);//在第十格输出1
printf("%*s%s\n",10,"","abcd");//前面有十个空格
return 0;
}
输出
ss
ss
1
abcd
Press any key to continue