---------------------------------------
关于printf函数的进一步说明:
如果想输出字符”%”,则应该在“格式控制”字符串中用连续两个%表示,如:
printf...不足则补空格,多出则按实际输出,默认按实际输出,例如:
printf(“%8d\n”,100); printf(“%6d\n”,100); printf(“%-8d\n”,100...例如:printf(“%8.2f\n”,3.14159);
printf(“%8.5f\n”,3.14159);
输出结果为:└┘└┘└┘└┘3.14...(“%f,%e,%g,%.7f/n”,fl,dl,dl,dl);
printf(“%f,%E,%G,%f/n”,fl,dl,dl,dl);//%F is wrong
printf(“%.8f,%.10e...*s /n”, 8, “abcdefgggggg”);
printf(“%*.