code2012

加油,坚持,努力,自信
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年7月29日

摘要: Fromhttp://blog.csdn.net/ast_224/article/details/3861625getopt_long支持长选项的命令行解析,使用man getopt_long,得到其声明如下: #include <getopt.h> int getopt_long(int argc, char * const argv[], const char *optstring, const struct option *longopts, int *longindex); int getopt_long_only(int argc, char * const argv[] 阅读全文

posted @ 2011-07-29 15:58 code2012 阅读(324) 评论(0) 推荐(0) 编辑

摘要: 1 #include<stdio.h> 2 3 int add(int pramer1,int pramer2); 4 5 6 int main() 7 { 8 int a=5; 9 10 printf("傻傻的:%d",a); //注释 explain111 12 a=add(1,2); 13 printf("\n结果是 the result_last:%d",a); //注释 explain114 15 getchar();16 return 0; 17 18 19 }20 21 22 int add(int pramer1 ,int p 阅读全文

posted @ 2011-07-29 03:22 code2012 阅读(180) 评论(0) 推荐(0) 编辑