- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
printf输出各种格式(Printf output format)
printf输出各种格式(Printf output format)
Printf output format
(a) string using the printf output format
1. the same output string:
Printf (%s, STR);
2. output specifies the length of the string, long without truncation, lack of right aligned:
Printf (%Ns, STR); - N for a specified length of 10 hexadecimal values
3. output specifies the length of the string, not long left truncation, lack of alignment:
Printf (%-Ns, STR); - N for a specified length of 10 hexadecimal values
4. output specifies the length of the string, super long cut, lack of right aligned:
Printf (%N.Ms, STR) - N; the final output string length
- M is removed from the string length in the parameter string
5. the output of the specified length string, long truncated left alignment is insufficient:
Printf (%-N.Ms, STR) - N; the final output string length
- M is removed from the string length in the parameter string
D character format, is used to output a decimal integer.
The%d, according to the actual length of the output integer data.
The%md, m the output field specifies the width of the data bits is less than m, the left blank fill, if more than m, according to the actual length of the output
The%ld output, long integer data (long)
O character format, with (unsigned integer octal output, he will also sign as part of an octal number.)
The%o reference,%d explained.
The%lo reference,%ld explained.
The%mo reference,%md explained.
X, X format with sixteen hexadecimal integer output
Is the 3 kind of reference%d explanation.
U character format, used to unsigned data, neither the number of symbols, in decimal form output
C format character, the output of a character.
S character format, the output of a string.
The%s, such as printf (%s, CHINA)
The%ms, the output string for the m column, the string length is less than m, the left blank fill, if exceed all the output.
The%-ms string is less than m, in the m column within the string on the left and right fill spaces.
The%m.ns output accounted for m, but only the left
您可能关注的文档
- hr塑造健康的企业组织(HR shaping organizational health).doc
- hql语句使用实例(The HQL statement with examples).doc
- htc vs 魅族巨人转身与单骑突围(HTC vs Meizu giant turns and solo breakthrough).doc
- htc惊艳 s710演示规范线上课程(HTC stunning S710 specification for the demonstration of online courses).doc
- htc魅族巨人转身与单骑突围(Meizu HTC giant turned and riding out).doc
- htk_readme(htk_readme).doc
- html初级语言(HTML primary language).doc
- html标签的jquery选择器(JQuery HTML tag selector).doc
- html语法大全(HTML grammar).doc
- html语言大全完整版(Full version of HTML language).doc
最近下载
- 护理同理心课件.pptx
- SYT6064-2017 油气管道线路标识设置技术规范.pdf VIP
- 湖南省长沙市湖南师范大学附属中学2024-2025学年上学期八年级入学考试数学试卷.docx VIP
- 甘油灌肠技术操作规程及评分标准.docx VIP
- 政府采购项目招标代理机构服务 投标技术方案(技术标).docx VIP
- 光缆敷设检验批质量验收记录通用表.xls VIP
- 宁波事业单位真题2024 .pdf VIP
- 2025年正高面审答辩-正高118面审答辩中西医结合儿科学笔试参考题库(2020-2024)附带答案详解.docx
- 2025年金华兰溪市粮食购销有限公司公开招聘工作人员3人的笔试参考题库附答案解析.docx VIP
- 大学机械学院毕业设计管理制度.docx VIP
文档评论(0)