Advertisement

课程——C语言课程(第十一)

阅读量:

C语言程序设计(十一)

文章目录

  • 第十一章 C语言程序设计

    • 文件管理
    • 数据格式化与输入输出处理
      • printf(* printf 函数用于格式化输出)

        • scanf(* scanf 函数用于格式化输入)
        • printf 和 scanf 的返回值(* 返回值类型及范围)
      • 文件输入输出

        • 打开文件的标准代码
  • Binary files

  • Textual vs binary data

    • Why does the program require file format?
    • Handling of binary data
    • What is the significance of "nitem" here?
    • File positioning techniques
    • Portability considerations in file operations

文件

格式化输入输出

printf

  • printf
    • %[flags][width][.prec][hlL]type
Flag 含义
- 左对齐
+ 在前面放 + 或 -
(space) 正数留空
0 0

全部评论 (0)

还没有任何评论哟~