📄 mycat.c
字号:
/* mycat */#include "stdio.h"int main (int argc, char* argv[]){ int i = 1;/*argc[0] is the name of the command*/ FILE *fp = NULL; char c; while (i < argc) { if ((fp=fopen(argv[i++],"r")) == NULL)/*Can not open the file*/ continue; /*Read the ith file and print*/ c = fgetc(fp); while (c != EOF) { printf("%c", c); c = fgetc(fp); } fclose(fp); } return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -