查找树,俄罗斯方块,系统编程开始
This commit is contained in:
36
Chapter13/C13-Linux系统编程学习笔记.md
Normal file
36
Chapter13/C13-Linux系统编程学习笔记.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# I/O操作
|
||||
|
||||
输入输出是一切实现的基础。
|
||||
|
||||
标准IO:`stdio`
|
||||
|
||||
系统调用IO(文件IO):`sysio`
|
||||
|
||||
优先使用标准IO,兼容性更好,还有合并系统调用的优势。
|
||||
|
||||
|
||||
|
||||
```c
|
||||
/* stdio */
|
||||
/* FILE类型贯穿始终 */
|
||||
|
||||
FILE *fopen(const c);
|
||||
fclose();
|
||||
|
||||
fgetc();
|
||||
fputc();
|
||||
fgets();
|
||||
fputs();
|
||||
fread();
|
||||
fwrite();
|
||||
|
||||
printf();
|
||||
scanf();
|
||||
|
||||
fseek();
|
||||
ftell();
|
||||
rewind();
|
||||
|
||||
fflush();
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user