首页 / 词典 / good

getc

  • abbr.廓尔喀工程训练中心(Gurkha Engineering Training Centre)
getcgetc
  1. Repeat the loop until getc () returns EOF .

    重复该循环直至getc()返回EOF。

  2. Then , whenever we call either fgets () or getc (), the data is passed into our program variables ( line or c ) .

    然后,每当我们调用fgets()或getc(),数据被传递到我们的程序变量(line或c)中。

  3. ( As we 've seen above , fgets () returns NULL while getc () returns EOF . )

    正如我们在上面看到的,fgets()返回NULL而getc()返回EOF。

  4. The logic used for form-feed-delimited pages is roughly the same , but slightly simpler , as there is no need for a line counter : Read char by char using the getc () library function .

    用于换页定界的页的逻辑大体上相同,只是稍稍简单一些,因为不需要行计数器:使用getc()库函数逐个读取字符。

  5. To simplify the code , the getc () method returns the next character from the buffer while putc () replaces the character in the buffer where it is available for the next call to getc () .

    要简化该代码,getc()方法返回缓冲区中的下一个字符,而putc()替换缓冲区中getc()下一次调用的字符。

  6. It is needed for the file opening , closing , reading , and writing functions ( fopen (), fclose (), fgets (), getc (), and so on ), for the printf () family of functions , and for the setvbuf () function .

    文件的打开、关闭、读和写函数(fopen()、fclose()、fgets()、getc()等等)、printf()函数系列和setvbuf()函数都需要它。