摘要:
10. If debugging is the process of removing software bugs, then programming must be the process of putting them in. – Edsger Dijkstra如果调试程序是移除臭虫(软件缺陷)的过程,那编写程序就是把臭虫放进来的过程。—— 迪杰斯特拉09. Writing the first 90 percent of a computer program takes 90 percent of the time. The remaining ten percent also takes 阅读全文
摘要:
popen函数执行命令后,返回一个指向该命令输出的文件句柄,接下来就可以用fgets等文件操作函数去读取输出结果。#include FILE *popen(const char *command, const char *type); int pclose(FILE *stream);type的参数只能是“r”或"w"例如 #include #include int main(int argc,char*argv[]){ FILE *fstream=NULL; char buff[1024]; ... 阅读全文