用顺序表和单链表分别实现求集合的并集、交集和差集.
问题描述:
用顺序表和单链表分别实现求集合的并集、交集和差集.
答
#include
#define maxsize 100
struct Sqlist
{
int elem[maxsize];
int length;
};
void difference(Sqlist &la,Sqlist lb)
{ //求A与B的并集
int i,j,e;
for(i=0;i谢谢啦嘿嘿