摘要: [https://www.bilibili.com/video/BV1qz4y1p767/]() # 线性表 ## 线性表的初始化(顺序表) ```c++ Status InitList(SqList &L) { L.elem = (ElemType *) malloc(sizeof(ElemTyp 阅读全文
posted @ 2023-08-14 18:50 给我一碗炒粉 阅读(137) 评论(0) 推荐(0)
摘要: jdbc连接 DriverManager 驱动程序管理器是负责管理驱动程序的,驱动注册以后,会保存在DriverManager中的已注册列表中后续的处理就可以对这个列表进行操作. 注册驱动方式 1.DriverManager.registerDriver(); 2.写代码实现 Class.forNa 阅读全文
posted @ 2023-04-20 22:27 给我一碗炒粉 阅读(29) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include "malloc.h" typedef char ElemType; typedef struct BiTNode { ElemType data; struct BiTNode *lchild, *rchlid; } BiTNode, *BiT 阅读全文
posted @ 2023-04-12 17:40 给我一碗炒粉 阅读(19) 评论(0) 推荐(0)
摘要: main.cpp #include "SCList.h" int main(){ List mylist; InitList(mylist); int select=1; ElemType Item; Node *p=NULL; while(select){ printf("************ 阅读全文
posted @ 2023-04-09 22:38 给我一碗炒粉 阅读(32) 评论(0) 推荐(0)
摘要: main.cpp #include "StaticList.h" int main() { StaticList SL; InitSList(SL); for (int i = 0; i < 5; ++i) { Insert(SL,'A'+i); } ShowSList(SL); DeleteSLi 阅读全文
posted @ 2023-04-09 22:31 给我一碗炒粉 阅读(30) 评论(0) 推荐(0)
摘要: 主函数 main.c #include "SList.h" void main() { List mylist; InitList(&mylist); int select=1; ElemType Item; Node *p=NULL; while(select){ printf("******** 阅读全文
posted @ 2023-03-26 16:24 给我一碗炒粉 阅读(45) 评论(0) 推荐(0)
摘要: 头文件 #ifndef LINER_LIST_SEQLIST_H #define LINER_LIST_SEQLIST_H #include <stdio.h> #include <malloc.h> #include <assert.h> #include <stdbool.h> #define 阅读全文
posted @ 2023-03-26 16:22 给我一碗炒粉 阅读(37) 评论(0) 推荐(0)
摘要: //一个8位的空间,如果表示无符号数0-255 unsigned char 0~2^8 -1 //如果用来表示有符号数 -128~127 char -2^7 ~2^7-1 //对其范围的探求,不止于,自字节数 #if 0 1字节 char 0 - 255 unsigned char 0~2^8 - 阅读全文
posted @ 2023-03-09 00:01 给我一碗炒粉 阅读(74) 评论(0) 推荐(0)
摘要: //一个8位的空间,如果表示无符号数0-255 unsigned char 0~2^8 -1 //如果用来表示有符号数 -128~127 char -2^7 ~2^7-1 //对其范围的探求,不止于,自字节数 #if 0 1字节 char 0 - 255 unsigned char 0~2^8 - 阅读全文
posted @ 2023-03-01 19:35 给我一碗炒粉 阅读(27) 评论(0) 推荐(0)
摘要: 指针与一维数组 函数调用的本质是值传递 数组传递是弱化为指针 如果指针变量已指向数组中的一个元素,则p+1指向同一数组的下一个元素,执行p+1并不是将p的值(地址)加1,而是加上一个数组元素所占用的字节数。 #include <stdio.h> int main() { int a[3] = { 2 阅读全文
posted @ 2023-01-17 16:36 给我一碗炒粉 阅读(100) 评论(0) 推荐(0)