
linux
SSDirector
up up up
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Makefile入门
浅谈Makefile Makefile是一种配置文件,类似于shell脚本。一个工程中往往包含很多个文件,使用Makefile能把所有文件(.c&.CPP&.h)编译、联系起来,确定它们的编译顺序,及那些需要重新编译,然后你仅仅需要在shell命令行执行make来实现工程中所有文件的自动化编译 从源代码到可执行文件 源代码(.c,.cpp)通过compile生成中间文件(.o) g++/gcc原创 2017-04-07 14:14:08 · 286 阅读 · 0 评论 -
C语言命令行参数解析函数
getopt()函数头文件#include <unistd.h>函数参数int getopt(int argc, char* const argv[], const char* optstring); extern char* optarg; extern int optind,opterr,optopt; 参数argc,argv直接从main(int argc, char * argv[])中传递原创 2017-10-15 20:36:58 · 1312 阅读 · 0 评论