Files
Data-Structure/CLion/CourseBook/0202_Union/Union.h
2019-10-20 19:06:37 +08:00

34 lines
620 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*==============
* 求并集
*
* 包含算法: 2.1
===============*/
#ifndef UNION_H
#define UNION_H
#include <stdio.h>
#include "Status.h" //**▲01 绪论**//
#include "SqList.h" //**▲02 线性表**//
/*
* ████████ 算法2.1 ████████
*
* A=AB
*
* 计算La与Lb的并集并返回。
* 由于生成的并集会拼接在La上所以La的入参为指针类型。
*/
void Union(SqList* La, SqList Lb);
/*
* 判等
*
* 判断两元素是否相等。
* 如果相等则返回TRUE否则返回FALSE。
*/
Status equal(ElemType e1, ElemType e2);
#endif