2017年3月21日

c语言读取文件,写入文件

摘要: 导入头文件 #include #include 读取文件 /**read file*/char* readFile(char *filePath){ FILE *fp; fp = fopen(filePath , "r"); fseek( ... 阅读全文

posted @ 2017-03-21 11:44 愤怒的苹果ext 阅读(36) 评论(0) 推荐(0) 编辑

c语言执行命令,传参

摘要: c语言执行脚本命令的代码 char str[128]; char *argvs = "ls /"; sprintf(str, "%s", argvs); system(str); printf("%s\n",str); argvs ... 阅读全文

posted @ 2017-03-21 11:40 愤怒的苹果ext 阅读(20) 评论(0) 推荐(0) 编辑

导航