请输入您要查询的百科知识:

 

词条 fgetchar
释义

§ 解释

函数名: fgetchar

功 能: 从流中读取字符

用 法: int fgetchar(void);

§ 程序例

#include <stdio.h>

int main(void)

{

char ch;

/* prompt the user for input */

printf("Enter a character followed by \\

<Enter>: ");

/* read the character from stdin */

ch = fgetchar();

/* display what was read */

printf("The character read is: '%c'\",

ch);

return 0;

}

随便看

 

百科全书收录594082条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2024/9/21 17:39:53