亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? library_11.html

?? linux_c函數(shù),linux下編程必備的
?? HTML
?? 第 1 頁 / 共 5 頁
字號(hào):
If the syntax of a conversion specification is invalid, unpredictable
things will happen, so don't do this.  If there aren't enough function
arguments provided to supply values for all the conversion
specifications in the template string, or if the arguments are not of
the correct types, the results are unpredictable.  If you supply more
arguments than conversion specifications, the extra argument values are
simply ignored; this is sometimes useful.
<P>
<H3><A NAME="SEC132" HREF="library_toc.html#SEC132" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC132">Integer Conversions</A></H3>
<P>
This section describes the options for the <SAMP>`%d'</SAMP>, <SAMP>`%i'</SAMP>,
<SAMP>`%o'</SAMP>, <SAMP>`%u'</SAMP>, <SAMP>`%x'</SAMP>, <SAMP>`%X'</SAMP>, and <SAMP>`%Z'</SAMP> conversion
specifications.  These conversions print integers in various formats.
<P>
The <SAMP>`%d'</SAMP> and <SAMP>`%i'</SAMP> conversion specifications both print an
<CODE>int</CODE> argument as a signed decimal number; while <SAMP>`%o'</SAMP>,
<SAMP>`%u'</SAMP>, and <SAMP>`%x'</SAMP> print the argument as an unsigned octal,
decimal, or hexadecimal number (respectively).  The <SAMP>`%X'</SAMP> conversion
specification is just like <SAMP>`%x'</SAMP> except that it uses the characters
<SAMP>`ABCDEF'</SAMP> as digits instead of <SAMP>`abcdef'</SAMP>.  <SAMP>`%Z'</SAMP> is like
<SAMP>`%u'</SAMP> but expects an argument of type <CODE>size_t</CODE>.
<P>
The following flags are meaningful:
<P>
<DL COMPACT>
<DT><SAMP>`-'</SAMP>
<DD>Left-justify the result in the field (instead of the normal
right-justification).
<P>
<DT><SAMP>`+'</SAMP>
<DD>For the signed <SAMP>`%d'</SAMP> and <SAMP>`%i'</SAMP> conversions, print a
plus sign if the value is positive.
<P>
<DT><SAMP>` '</SAMP>
<DD>For the signed <SAMP>`%d'</SAMP> and <SAMP>`%i'</SAMP> conversions, if the result
doesn't start with a plus or minus sign, prefix it with a space
character instead.  Since the <SAMP>`+'</SAMP> flag ensures that the result
includes a sign, this flag is ignored if you supply both of them.
<P>
<DT><SAMP>`#'</SAMP>
<DD>For the <SAMP>`%o'</SAMP> conversion, this forces the leading digit to be <SAMP>`0'</SAMP>,
as if by increasing the precision.  For <SAMP>`%x'</SAMP> or <SAMP>`%X'</SAMP>, this
prefixes a leading <SAMP>`0x'</SAMP> or <SAMP>`0X'</SAMP> (respectively) to the result.
This doesn't do anything useful for the <SAMP>`%d'</SAMP>, <SAMP>`%i'</SAMP>, or <SAMP>`%u'</SAMP>
conversions.
<P>
<DT><SAMP>`0'</SAMP>
<DD>Pad the field with zeros instead of spaces.  The zeros are placed after
any indication of sign or base.  This flag is ignored if the <SAMP>`-'</SAMP>
flag is also specified, or if a precision is specified.
</DL>
<P>
If a precision is supplied, it specifies the minimum number of digits to
appear; leading zeros are produced if necessary.  If you don't specify a
precision, the number is printed with as many digits as it needs.  If
you convert a value of zero with an explicit precision of zero, then no
characters at all are produced.
<P>
Without a type modifier, the corresponding argument is treated as an
<CODE>int</CODE> (for the signed conversions <SAMP>`%i'</SAMP> and <SAMP>`%d'</SAMP>) or
<CODE>unsigned int</CODE> (for the unsigned conversions <SAMP>`%o'</SAMP>, <SAMP>`%u'</SAMP>,
<SAMP>`%x'</SAMP>, and <SAMP>`%X'</SAMP>).  Recall that since <CODE>printf</CODE> and friends
are variadic, any <CODE>char</CODE> and <CODE>short</CODE> arguments are
automatically converted to <CODE>int</CODE> by the default argument
promotions.  For arguments of other integer types, you can use these
modifiers:
<P>
<DL COMPACT>
<DT><SAMP>`h'</SAMP>
<DD>Specifies that the argument is a <CODE>short int</CODE> or <CODE>unsigned
short int</CODE>, as appropriate.  A <CODE>short</CODE> argument is converted to an
<CODE>int</CODE> or <CODE>unsigned int</CODE> by the default argument promotions
anyway, but the <SAMP>`h'</SAMP> modifier says to convert it back to a
<CODE>short</CODE> again.
<P>
<DT><SAMP>`l'</SAMP>
<DD>Specifies that the argument is a <CODE>long int</CODE> or <CODE>unsigned long
int</CODE>, as appropriate.  
<P>
<DT><SAMP>`L'</SAMP>
<DD>Specifies that the argument is a <CODE>long long int</CODE>.  (This type is
an extension supported by the GNU C compiler.  On systems that don't
support extra-long integers, this is the same as <CODE>long int</CODE>.)
</DL>
<P>
The modifiers for argument type are not applicable to <SAMP>`%Z'</SAMP>, since
the sole purpose of <SAMP>`%Z'</SAMP> is to specify the data type
<CODE>size_t</CODE>.
<P>
Here is an example.  Using the template string:
<P>
<PRE>
|%5d|%-5d|%+5d|%+-5d|% 5d|%05d|%5.0d|%5.2d|%d|\n"
</PRE>
<P>
to print numbers using the different options for the <SAMP>`%d'</SAMP>
conversion gives results like:
<P>
<PRE>
|    0|0    |   +0|+0   |    0|00000|     |   00|0|
|    1|1    |   +1|+1   |    1|00001|    1|   01|1|
|   -1|-1   |   -1|-1   |   -1|-0001|   -1|  -01|-1|
|100000|100000|+100000| 100000|100000|100000|100000|100000|
</PRE>
<P>
In particular, notice what happens in the last case where the number
is too large to fit in the minimum field width specified.
<P>
Here are some more examples showing how unsigned integers print under
various format options, using the template string:
<P>
<PRE>
"|%5u|%5o|%5x|%5X|%#5o|%#5x|%#5X|%#10.8x|\n"
</PRE>
<P>
<PRE>
|    0|    0|    0|    0|    0|  0x0|  0X0|0x00000000|
|    1|    1|    1|    1|   01|  0x1|  0X1|0x00000001|
|100000|303240|186a0|186A0|0303240|0x186a0|0X186A0|0x000186a0|
</PRE>
<P>
<H3><A NAME="SEC133" HREF="library_toc.html#SEC133" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC133">Floating-Point Conversions</A></H3>
<P>
This section discusses the conversion specifications for floating-point
numbers: the <SAMP>`%f'</SAMP>, <SAMP>`%e'</SAMP>, <SAMP>`%E'</SAMP>, <SAMP>`%g'</SAMP>, and <SAMP>`%G'</SAMP>
conversions.
<P>
The <SAMP>`%f'</SAMP> conversion prints its argument in fixed-point notation,
producing output of the form
[<CODE>-</CODE>]<VAR>ddd</VAR><CODE>.</CODE><VAR>ddd</VAR>,
where the number of digits following the decimal point is controlled
by the precision you specify.
<P>
The <SAMP>`%e'</SAMP> conversion prints its argument in exponential notation,
producing output of the form
[<CODE>-</CODE>]<VAR>d</VAR><CODE>.</CODE><VAR>ddd</VAR><CODE>e</CODE>[<CODE>+</CODE>|<CODE>-</CODE>]<VAR>dd</VAR>.
Again, the number of digits following the decimal point is controlled by
the precision.  The exponent always contains at least two digits.  The
<SAMP>`%E'</SAMP> conversion is similar but the exponent is marked with the letter
<SAMP>`E'</SAMP> instead of <SAMP>`e'</SAMP>.
<P>
The <SAMP>`%g'</SAMP> and <SAMP>`%G'</SAMP> conversions print the argument in the style
of <SAMP>`%e'</SAMP> or <SAMP>`%E'</SAMP> (respectively) if the exponent would be less
than -4 or greater than or equal to the precision; otherwise they use the
<SAMP>`%f'</SAMP> style.  Trailing zeros are removed from the fractional portion
of the result and a decimal-point character appears only if it is
followed by a digit.
<P>
The following flags can be used to modify the behavior:
<P>
<DL COMPACT>
<DT><SAMP>`-'</SAMP>
<DD>Left-justify the result in the field.  Normally the result is
right-justified.
<P>
<DT><SAMP>`+'</SAMP>
<DD>Always include a plus or minus sign in the result.
<P>
<DT><SAMP>` '</SAMP>
<DD>If the result doesn't start with a plus or minus sign, prefix it with a
space instead.  Since the <SAMP>`+'</SAMP> flag ensures that the result includes
a sign, this flag is ignored if you supply both of them.
<P>
<DT><SAMP>`#'</SAMP>
<DD>Specifies that the result should always include a decimal point, even
if no digits follow it.  For the <SAMP>`%g'</SAMP> and <SAMP>`%G'</SAMP> conversions,
this also forces trailing zeros after the decimal point to be left
in place where they would otherwise be removed.
<P>
<DT><SAMP>`0'</SAMP>
<DD>Pad the field with zeros instead of spaces; the zeros are placed
after any sign.  This flag is ignored if the <SAMP>`-'</SAMP> flag is also
specified.
</DL>
<P>
The precision specifies how many digits follow the decimal-point
character for the <SAMP>`%f'</SAMP>, <SAMP>`%e'</SAMP>, and <SAMP>`%E'</SAMP> conversions.  For
these conversions, the default is <CODE>6</CODE>.  If the precision is
explicitly <CODE>0</CODE>, this has the rather strange effect of suppressing
the decimal point character entirely!  For the <SAMP>`%g'</SAMP> and <SAMP>`%G'</SAMP>
conversions, the precision specifies how many significant digits to
print; if <CODE>0</CODE> or not specified, it is treated like a value of
<CODE>1</CODE>.
<P>
Without a type modifier, the floating-point conversions use an argument
of type <CODE>double</CODE>.  (By the default argument promotions, any
<CODE>float</CODE> arguments are automatically converted to <CODE>double</CODE>.)
The following type modifier is supported:
<P>
<DL COMPACT>
<DT><SAMP>`L'</SAMP>
<DD>An uppercase <SAMP>`L'</SAMP> specifies that the argument is a <CODE>long
double</CODE>.
</DL>
<P>
Here are some examples showing how numbers print using the various
floating-point conversions.  All of the numbers were printed using
this template string:
<P>
<PRE>
"|%12.4f|%12.4e|%12.4g|\n"
</PRE>
<P>
Here is the output:
<P>
<PRE>
|      0.0000|  0.0000e+00|           0|
|      1.0000|  1.0000e+00|           1|
|     -1.0000| -1.0000e+00|          -1|
|    100.0000|  1.0000e+02|         100|
|   1000.0000|  1.0000e+03|        1000|
|  10000.0000|  1.0000e+04|       1e+04|
|  12345.0000|  1.2345e+04|   1.234e+04|
| 100000.0000|  1.0000e+05|       1e+05|
| 123456.0000|  1.2346e+05|   1.234e+05|
</PRE>
<P>
Notice how the <SAMP>`%g'</SAMP> conversion drops trailing zeros.
<P>
<H3><A NAME="SEC134" HREF="library_toc.html#SEC134" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC134">Other Output Conversions</A></H3>
<P>
This section describes miscellaneous conversions for <CODE>printf</CODE>.
<P>
The <SAMP>`%c'</SAMP> conversion prints a single character.  The <CODE>int</CODE>
argument is first converted to an <CODE>unsigned char</CODE>.  The <SAMP>`-'</SAMP>
flag can be used to specify left-justification in the field, but no
other flags are defined, and no precision or type modifier can be given.
For example:
<P>
<PRE>
printf ("%c%c%c%c%c", 'h', 'e', 'l', 'l', 'o');
</PRE>
<P>
prints <SAMP>`hello'</SAMP>.
<P>
The <SAMP>`%s'</SAMP> conversion prints a string.  The corresponding argument
must be of type <CODE>char *</CODE>.  A precision can be specified to indicate
the maximum number of characters to write; otherwise characters in the
string up to but not including the terminating null character are
written to the output stream.  The <SAMP>`-'</SAMP> flag can be used to specify
left-justification in the field, but no other flags or type modifiers
are defined for this conversion.  For example:
<P>
<PRE>
printf ("%3s%-6s", "no", "where");
</PRE>
<P>
prints <SAMP>` nowhere '</SAMP>.
<P>
If you accidentally pass a null pointer as the argument for a <SAMP>`%s'</SAMP>
conversion, the GNU library prints it as <SAMP>`(null)'</SAMP>.  We think this
is more useful than crashing.  But it's not good practice to pass a null
argument intentionally.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久一区二区三区国产精品| 国模套图日韩精品一区二区| 91论坛在线播放| 中文字幕一区免费在线观看 | 欧美成人a视频| 麻豆91在线看| 久久久久久影视| 岛国精品在线播放| 亚洲女子a中天字幕| 欧美在线观看一区| 日韩精品免费专区| 久久久五月婷婷| 成人国产精品免费观看动漫| 一区二区三区久久久| 欧美剧情片在线观看| 国产一区二三区好的| 国产精品久久久久久久久免费樱桃| 99精品久久久久久| 午夜成人免费电影| 国产亚洲精品超碰| 91成人看片片| 国产中文字幕精品| 中文字幕制服丝袜一区二区三区 | 日韩精品一区二区三区老鸭窝| 国内精品久久久久影院色| 国产精品国产三级国产普通话99| 久久精品人人做| 色婷婷久久一区二区三区麻豆| 爽爽淫人综合网网站| 国产欧美在线观看一区| 色婷婷精品久久二区二区蜜臀av| 日韩国产欧美在线观看| 国产欧美日韩三区| 欧美日韩mp4| 成人黄色一级视频| 日本午夜精品一区二区三区电影| 国产精品国产三级国产普通话三级| 欧美精品亚洲二区| 99久久国产综合精品女不卡| 免费成人在线播放| 亚洲一级不卡视频| 国产精品网站在线观看| 日韩一区二区三区视频在线| 91视频精品在这里| 国产一区二区三区精品欧美日韩一区二区三区 | 青青草成人在线观看| 中文字幕在线播放不卡一区| 欧美成人一区二区三区在线观看| 91麻豆国产自产在线观看| 久久福利视频一区二区| 亚洲电影第三页| 亚洲色图制服诱惑 | 亚洲国产视频一区二区| 欧美国产一区二区| 日韩精品一区在线| 欧美精品高清视频| 色屁屁一区二区| www.欧美色图| 国产精品911| 精品一二三四区| 日韩一区精品字幕| 午夜在线成人av| 亚洲综合激情另类小说区| 国产精品久久精品日日| 国产亚洲一本大道中文在线| 欧美一区午夜精品| 7777精品伊人久久久大香线蕉经典版下载 | 国产午夜亚洲精品理论片色戒 | 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲精品成人天堂一二三| 国产精品初高中害羞小美女文| 久久影音资源网| 久久久久久久综合日本| 欧美大片顶级少妇| 精品国产三级a在线观看| 69精品人人人人| 欧美日韩日日骚| 欧美日韩国产综合久久| 欧美日韩国产a| 欧美日韩精品一区视频| 欧美精品黑人性xxxx| 欧美精品乱码久久久久久| 在线播放/欧美激情| 欧美精品在线视频| 日韩你懂的在线观看| 欧美成人vr18sexvr| 久久精品一区四区| 国产精品嫩草99a| 亚洲欧美区自拍先锋| 一区二区不卡在线播放 | 蜜桃免费网站一区二区三区| 日本欧美加勒比视频| 久久国产尿小便嘘嘘尿| 国产一区二区91| 成人免费黄色在线| 色美美综合视频| 欧美精品 国产精品| 亚洲精品在线电影| 日本一二三不卡| 伊人色综合久久天天| 天天av天天翘天天综合网色鬼国产| 天堂一区二区在线免费观看| 六月丁香婷婷久久| 成人午夜电影久久影院| 在线观看欧美黄色| 日韩欧美一级二级三级久久久| 精品精品国产高清一毛片一天堂| 国产日韩亚洲欧美综合| 亚洲免费电影在线| 日韩av不卡在线观看| 国产成人av一区二区三区在线 | 久久国内精品视频| 成人丝袜高跟foot| 欧美日韩激情一区二区三区| 精品国产sm最大网站免费看| 日韩一区有码在线| 日本va欧美va欧美va精品| 国产精品1024| 欧美色网站导航| 久久亚洲二区三区| 亚洲一区二区欧美日韩| 久久国产尿小便嘘嘘| 91福利社在线观看| 2020日本不卡一区二区视频| 亚洲中国最大av网站| 国产一区二区三区| 精品视频1区2区| 国产精品国产三级国产普通话三级 | 91麻豆成人久久精品二区三区| 日韩三级av在线播放| 亚洲精品国产a久久久久久 | 欧美国产综合一区二区| 天天爽夜夜爽夜夜爽精品视频| 成人激情午夜影院| 日韩精品在线看片z| 亚洲国产一区在线观看| 国产91露脸合集magnet| 欧美一区二区三区男人的天堂| 最新不卡av在线| 国产很黄免费观看久久| 3d动漫精品啪啪1区2区免费| 亚洲视频一区二区在线观看| 国产一区二区三区免费播放| 8x8x8国产精品| 亚洲乱码日产精品bd| 欧美理论片在线| 亚洲欧美二区三区| 懂色av一区二区三区蜜臀| 欧美一级欧美三级| 午夜久久久影院| 色中色一区二区| 中文字幕va一区二区三区| 久久99热狠狠色一区二区| 欧美色倩网站大全免费| 亚洲精品视频在线观看免费| 国产成人啪午夜精品网站男同| 精品国产91乱码一区二区三区 | 国产精品你懂的| 国产精品自拍网站| 欧美精品一区视频| 免费在线观看不卡| 91精品国产免费| 五月天亚洲婷婷| 欧美日韩在线播放三区四区| 亚洲精品成a人| 色婷婷综合激情| 亚洲男人天堂一区| 色婷婷综合久久久| 亚洲精品伦理在线| 91国产福利在线| 亚洲精选视频在线| 欧洲精品一区二区三区在线观看| 亚洲日本一区二区| 91黄色免费版| 午夜视频一区二区三区| 欧美浪妇xxxx高跟鞋交| 日日摸夜夜添夜夜添亚洲女人| 欧美日韩精品电影| 美女在线观看视频一区二区| 日韩午夜电影在线观看| 精品中文字幕一区二区| 久久综合给合久久狠狠狠97色69| 精久久久久久久久久久| 国产丝袜在线精品| 成人av在线资源网站| 亚洲欧美日韩久久| 在线免费一区三区| 日本一区中文字幕| 精品sm在线观看| 成人av午夜影院| 亚洲综合无码一区二区| 91精品国产综合久久久蜜臀粉嫩 | 精品日韩在线一区| 国产成人午夜精品影院观看视频| 中文字幕亚洲成人| 欧美三级电影一区| 狠狠色丁香久久婷婷综合丁香| 欧美激情一区二区三区| 在线一区二区视频| 免费在线看一区|