版本4和5间的区别
于2007-10-23 20:11:14修订的的版本4
大小: 846
编辑: czk
备注:
于2008-02-23 15:36:27修订的的版本5
大小: 846
编辑: localhost
备注: converted to 1.6 markup
删除的内容标记成这样。 加入的内容标记成这样。
行号 1: 行号 1:
[[Navigation(slides)]] <<Navigation(slides)>>

<<Navigation: 执行失败 ['AllContext' object has no attribute 'values'] (see also the log)>>

7.8.3 Ungetc ungetc 函数

The standard library provides a rather restricted version of the function ungetch that we wrote in Chapter 4; it is called ungetc.

   int ungetc(int c, FILE *fp)

pushes the character c back onto file fp, and returns either c, or EOF for an error. Only one character of pushback is guaranteed per file. ungetc may be used with any of the input functions like scanf, getc, or getchar.

标准库提供了一个称为ungetc的函数,它与第4章中编写的函数ungetch相比功能更受限制。

   int ungetc(int c, FILE *fp)

该函数将字符写回到文件fp中。如果执行成功,则返回c,否则返回EOF。每个文件只能接收一个写回字符。ungetc函数可以和任何一个输入函数一起使用,比如scanf、getc或getchar。

TCPL/7.8.3_Ungetc (2008-02-23 15:36:27由localhost编辑)

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