线性集合A-线性集合B
摘要:
需要注意的地方:删除一个元素后,下一次遍历的下标值不变,另外程序使用了动态线性表,在插入操作时可以扩容,使用p=realloc(p,size)#include <iostream>using namespace std;typedef struct { int *p; int length; int size;}sqListEx;void initList(sqListEx& sqlist,int m){ sqlist.p=(int *)malloc(m*sizeof(int)); sqlist.length=0; sqlist.size=m;}void ... 阅读全文
posted @ 2012-08-23 10:41 为梦飞翔 阅读(303) 评论(0) 推荐(0)
浙公网安备 33010602011771号