📄 实例7-2.c
字号:
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#define MAXLINE 4096
int main(void)
{
char buf[MAXLINE];
while (fgets(buf,MAXLINE,stdin)!=NULL)
if (fputs(buf,stdout)==EOF)
printf("output error");
if(ferror(stdin))
printf("input error");
exit(0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -