📄 subject_55697.htm
字号:
<p>
序号:55697 发表者:丁冲 发表日期:2003-10-11 18:40:22
<br>主题:Format的参数到底有多少啊?
<br>内容:我就知道%d,那位可否说一下
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:_学习者_ 回复日期:2003-10-11 18:42:33
<br>内容:print可以使用的,format都可以。可以查MSDN。
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:紫君 回复日期:2003-10-11 18:43:47
<br>内容:你问的是什么呀
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:丁冲 回复日期:2003-10-11 18:49:05
<br>内容:我就是想知道除了%d外还有哪一些<BR>MSDN不太会用,没有查到——有点苯
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:_学习者_ 回复日期:2003-10-11 18:51:53
<br>内容:Character Type Output format <BR>c int or wint_t When used with printf functions, specifies a single-byte character; when used with wprintf functions, specifies a wide character. <BR>C int or wint_t When used with printf functions, specifies a wide character; when used with wprintf functions, specifies a single-byte character. <BR>d int Signed decimal integer. <BR>i int Signed decimal integer. <BR>o int Unsigned octal integer. <BR>u int Unsigned decimal integer. <BR>x int Unsigned hexadecimal integer, using "abcdef." <BR>X int Unsigned hexadecimal integer, using "ABCDEF." <BR>e double Signed value having the form [ – ]d.dddd e [sign]ddd where d is a single decimal digit, dddd is one or more decimal digits, ddd is exactly three decimal digits, and sign is + or –. <BR>E double Identical to the e format except that E rather than e introduces the exponent. <BR>f double Signed value having the form [ – ]dddd.dddd, where dddd is one or more decimal digits. The number of digits before the decimal point depends on the magnitude of the number, and the number of digits after the decimal point depends on the requested precision. <BR>g double Signed value printed in f or e format, whichever is more compact for the given value and precision. The e format is used only when the exponent of the value is less than –4 or greater than or equal to the precision argument. Trailing zeros are truncated, and the decimal point appears only if one or more digits follow it. <BR>G double Identical to the g format, except that E, rather than e, introduces the exponent (where appropriate). <BR>n Pointer to integer Number of characters successfully written so far to the stream or buffer; this value is stored in the integer whose address is given as the argument. <BR>p Pointer to void Prints the address of the argument in hexadecimal digits. <BR>s String When used with printf functions, specifies a single-byte–character string; when used with wprintf functions, specifies a wide-character string. Characters are printed up to the first null character or until the precision value is reached. <BR>S String When used with printf functions, specifies a wide-character string; when used with wprintf functions, specifies a single-byte–character string. Characters are printed up to the first null character or until the precision value is reached. <BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:_学习者_ 回复日期:2003-10-11 18:56:10
<br>内容:使用MSND方法:<BR>MSDN界面是TAB的,在“索引”方式中,输入printf,在列表中会自动定位到printf上,然后选择,或者子项,就可以找到需要的了。
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:丁冲 回复日期:2003-10-11 19:04:20
<br>内容:多谢!<BR>TAB是什么意思啊?<BR>可以切换吗?<BR>不是很懂:)
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:_学习者_ 回复日期:2003-10-11 19:11:03
<br>内容:图中右侧有“搜索”,“目录”,“索引”三个TAB,也就是TabCtrl的效果。标识字在下边。<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:丁冲 回复日期:2003-10-11 19:18:25
<br>内容:哦,是这样:)
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -