摘要:
一、一维数组 二、二维数组 三、对称矩阵 四、三角矩阵 五、对角矩阵 六、稀疏矩阵 阅读全文
摘要:
完整代码 /* * 程序名:seqstack3.c,此程序演示用顺序栈实现中缀表达式转后缀表达式。 * 作者:C语言技术网(www.freecplus.net) 日期:20201230 */ #include <stdio.h> #include <string.h> #define MAXSIZE 阅读全文
摘要:
一、初等矩阵 二、逆矩阵 三、逆矩阵的性质 四、分块矩阵 四、习题 阅读全文
摘要:
一、定义两个个结构体 #include <stdio.h> #include <string.h> #include <stdlib.h> typedef int ElemType; // 自定义队列的数据元素为整数。 typedef struct LNode { ElemType data; // 阅读全文
摘要:
一、定义一个结构体 #include <stdio.h> #include <string.h> #define MAXSIZE 10 // 循环队列的最大长度,最多可以存放MAXSIZE个元素。 typedef int ElemType; // 自定义循环队列的数据元素为整数。 typedef s 阅读全文
摘要:
一、定义一个结构体 #include <stdio.h> #include <string.h> #define MAXSIZE 10 // 循环队列的最大长度,最多可以存放MAXSIZE-1个元素。 typedef int ElemType; // 自定义循环队列的数据元素为整数。 typedef 阅读全文
摘要:
一、定义一个结构体 #include <stdio.h> #include <string.h> #define MAXSIZE 10 // 循环队列的最大长度,最多可以存放MAXSIZE个元素。 typedef int ElemType; // 自定义循环队列的数据元素为整数。 typedef s 阅读全文
摘要:
队列( Queue )是操作受限的线性表.限定在表的一端插入(入队),另一端删除(出队),特点是数据元素先进先出( FIFO First in First Out)。 重要术语:空队列、满队列、入(进)队、出(离)队、队头(允许删除的一端)、队尾(允许插入的一端)。 一、定义一个结构体 #inclu 阅读全文
摘要:
一、定义一个结构体 #include <stdio.h> #include <string.h> #include <stdlib.h> typedef int ElemType; // 自定义链栈的数据元素为整数。 typedef struct SNode { ElemType data; // 阅读全文
摘要:
一、定义一个结构体 #include <stdio.h> #include <string.h> #define MAXSIZE 10 // 顺序栈的最大长度。 typedef int ElemType; // 自定义顺序栈的数据元素为整数。 typedef struct { ElemType da 阅读全文