发送格式化输出到流 stream 中。
22int printf(const char *format, ...)
发送格式化输出到标准输出 stdout。
23int sprintf(char *str, const char *format, ...)
发送格式化输出到字符串。
24int vfprintf(FILE *stream, const char *format, va_list arg)
使用参数列表发送格式化输出到流 stream 中。char[]数组
25int vprintf(const char *format, va_list arg)
使用参数列表发送格式化输出到标准输出 stdout。
26int vsprintf(char *str, const char *format, va_list arg)
使用参数列表发送格式化输出到字符串。
27int fscanf(FILE *stream, const char *format, ...)
从流 stream 读取格式化输入。
![char[]数组_*c string数组_char数组是什么](http://www.oschina.net/uploads/code/201207/18175450_3BsL.png)
28int scanf(const char *format, ...)
从标准输入 stdin 读取格式化输入。
29int sscanf(const char *str, const char *format, ...)
从字符串读取格式化输入。
30int fgetc(FILE *stream)
从指定的流 stream 获取下一个字符(一个无符号字符),并把位置标识符往前移动。
31char *fgets(char *str, int n, FILE *stream)
从指定的流 stream 读取一行,并把它存储在 str 所指向的字符串内。当读取 (n-1) 个字符时,或者读取到换行符时,或者到达文件末尾时,它会停止,具体视情况而定。
32int fputc(int char, FILE *stream)
把参数 char 指定的字符(一个无符号字符)写入到指定的流 stream 中,并把位置标识符往前移动。
33int fputs(const char *str, FILE *stream)
把字符串写入到指定的流 stream 中,但不包括空字符。
34int getc(FILE *stream)
从指定的流 stream 获取下一个字符(一个无符号字符),并把位置标识符往前移动。
35int getchar(void)
从标准输入 stdin 获取一个字符(一个无符号字符)。
36char *gets(char *str)
从标准输入 stdin 读取一行,并把它存储在 str 所指向的字符串中。当读取到换行符时,或者到达文件末尾时,它会停止,具体视情况而定。char[]数组
37int putc(int char, FILE *stream)
把参数 char 指定的字符(一个无符号字符)写入到指定的流 stream 中,并把位置标识符往前移动。
38int putchar(int char)
把参数 char 指定的字符(一个无符号字符)写入到标准输出 stdout 中。
39int puts(const char *str)
把一个字符串写入到标准输出 stdout,直到空字符,但不包括空字符。换行符会被追加到输出中。
40int ungetc(int char, FILE *stream)
把字符 char(一个无符号字符)推入到指定的流 stream 中,以便它是下一个被读取到的字符。
41void perror(const char *str)
把一个描述性错误消息输出到标准错误 stderr。首先输出字符串 str,后跟一个冒号,然后是一个空格。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-54327-2.html
赔偿2包
发射DF21D和26
也不敢再找事羞辱我们