C语言讲义第七章(精品·公开课件).pptVIP

  • 2
  • 0
  • 约1.64万字
  • 约 57页
  • 2018-11-05 发布于广西
  • 举报
CHAPTER7:Input Output 26 int getc(FILE *fp) /*return the next character, if at the end of the file, will return EOF */ 返回文件中的下一个字符,如果到达文件末尾则返回EOF int putc(int c, FILE *fp) /*write the character c to the file fp and return the character put out */ 将字符c写入fp指向的文件,返回写入的字符 CHAPTER7:Input Output 27 the standard in stdin the standard out stdout the standard error stderr 标准输入输出设备被看作文件处理 #define getchar() getc(stdin) #define putchar(c) putc((c),stdout) CHAPTER7:Input Output 28 Formatted input and output for file int fscanf(FILE *fp, char *format,

文档评论(0)

1亿VIP精品文档

相关文档