摘要:
不论是干应用还是干底层,第一关就是数据结构和算法,这些都是基本功,今天开始复习数据结构是线性表线性表简称为表,是零个或多个元素的有穷序列。通常表示为L=(k0,k1,k2,...kn-1) 其中k为长度线性表的顺序表示struct SeqList{ int MaxNUM;//顺序表中最大元素的个数 int n;//存放线性表中元素的个数你<=MAXNUM DataType *element; //element[0],element[1],element[2]....element[n-1] 存放线性表中//的元素};//创建空顺序表PSeqList createNullList_... 阅读全文
摘要:
C语言编程写的一个http下载程序,需要知道http协议,参照的是RFC2616文档(比较权威)/******* http客户端程序 httpclient.c ************/#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <sys/socket.h>#include <errno.h>#include <unistd.h>#include <netinet/in.h&g 阅读全文