- 博客(3)
- 收藏
- 关注
转载 Linux下C语言复制文件
从usr/bin/info复制到myinfo.c #include<unistd.h> #include<fcntl.h> #include<sys/types.h> #include<sys/stat.h> #include<stdio.h> int main() { const char* p...
2019-09-19 19:36:00
191
转载 vim编写C/C++程序过程
vim编写C、C++程序过程(以hello world为例): vim hello.c/hello.cpp 或者vi hello.c/hello.cpp创建hello.c/hello.cpp文件并进入vim界面; 键入i或a,进入输入模式。 编写hello.c/hello.cpp程序。 写完后先按Esc键,退出输入模式;进入命令模式,输入:wq,保存并...
2019-09-06 14:54:00
112
转载 C语言文件操作
文件操作基本流程: •打开:fopen •关闭:fclose fopen函数原型:FILE *fopen(const char *filename, const char *mode) fopen函数打开filename指定的文件, 并返回一个与之相关联的流。 如果打开操作失败,则返回 NULL 访问模式mode可以为下列合法值之一: "r" 打开文本文...
2019-08-27 21:37:00
105
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人