Files
Data-Structure/CLion/CourseBook/0207_Difference/Difference-main.c
2019-11-07 12:16:00 +08:00

22 lines
461 B
C
Raw Permalink 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.
#include <stdio.h>
#include "Difference.h" //**▲02 线性表**//
// 测试函数,打印元素
void PrintElem(ElemType e) {
printf("%d ", e);
}
int main(int argc, char** argv) {
SLinkList space; // 备用空间
int S; // 静态链表
// S = (A-B)(B-A)
difference(space, &S, "TestData.txt");
printf("S = (A-B)(B-A) = ");
ListTraverse(space, S, PrintElem);
return 0;
}