正在加载图片...
printf(conversion specifiers(continued) Conversion specifiers may optionally contain Right or left alignment in the field Minimum field width(padded on right or left) · Precision-1.e., Maximum length of string Number of decimal places of floating point value Exampl es 8 6d-print signed decimal number in 6-char field 88. 4f-print floating point number with four places after decimal point, field width of 8 characters27 printf() conversion specifiers (continued) • Conversion specifiers may optionally contain • Right or left alignment in the field • Minimum field width (padded on right or left) • Precision – i.e., – Maximum length of string – Number of decimal places of floating point value • Examples %6d – print signed decimal number in 6-char field %8.4f – print floating point number with four places after decimal point, field width of 8 characters
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有