随笔分类 -  数据结构

数据结构
摘要:带头结点的单链表的初始化、插入、删除、查询长度和输出元素,源码如下: 1 #include<stdio.h> 2 #include<math.h> 3 #include<stdlib.h> 4 #include<malloc.h> 5 6 #define MAXSIZE 10 //定义顺序表最大长度 阅读全文
posted @ 2021-03-02 10:46 sunshine233 阅读(588) 评论(0) 推荐(0)
摘要:1 #include<stdio.h> 2 #include<math.h> 3 4 int main(){ 5 //二行三列矩阵,第一行数据为1,2,3;第二行数据为4,5,6 6 int arr[2][3] = {{1,2,3},{4,5,6}}; 7 int arrTran[3][2]; // 阅读全文
posted @ 2021-03-01 15:48 sunshine233 阅读(301) 评论(0) 推荐(0)