版本4和5间的区别
于2006-05-22 19:58:16修订的的版本4
大小: 1444
编辑: czk
备注:
于2006-05-22 20:20:13修订的的版本5
大小: 1501
编辑: czk
备注:
删除的内容标记成这样。 加入的内容标记成这样。
行号 1: 行号 1:
[[Navigation(slideshow)]]
行号 17: 行号 19:

[[Navigation(children)]]

Navigation(slideshow)

Chapter 7 - Input and Output

Input and output are not part of the C language itself, so we have not emphasized them in our presentation thus far. Nonetheless, programs interact with their environment in much more complicated ways than those we have shown before. In this chapter we will describe the standard library, a set of functions that provide input and output, string handling, storage management, mathematical routines, and a variety of other services for C programs. We will concentrate on input and output

The ANSI standard defines these library functions precisely, so that they can exist in compatible form on any system where C exists. Programs that confine their system interactions to facilities provided by the standard library can be moved from one system to another without change.

The properties of library functions are specified in more than a dozen headers; we have already seen several of these, including <stdio.h>, <string.h>, and <ctype.h>. We will not present the entire library here, since we are more interested in writing C programs that use it. The library is described in detail in Appendix B.

  • ["/7.1 Standard Input and Output"]
  • ["/7.2 Formatted Output - printf"]
  • ["/7.3 Variable-length Argument Lists"]
  • ["/7.4 Formatted Input - Scanf"]
  • ["/7.5 File Access"]
  • ["/7.6 Error Handling - Stderr and Exit"]
  • ["/7.7 Line Input and Output"]
  • ["/7.8 Miscellaneous Functions"]

Navigation(children)

TCPL/7_Input_and_Output (2008-05-22 11:45:20由czk编辑)

ch3n2k.com | Copyright (c) 2004-2020 czk.