如图36行代码,-d%是干什么的
printf("-%d", foo);
是输出负号(即'-'),后面紧跟foo的数值;
printf("%-4d", foo);
意为输出foo的值在四列,且靠左输出.
输出负号‘-’
单纯的输出负号%-10d,存在空位会用-去占位