摘要: scanf读取原理 行缓冲:标准缓存区读入字符 ‘20\n’,会打印输出20,紧接着的scanf,会打印输出\n,标准输入缓冲区有\n,scanf(c=%c,&c),直接读取缓冲区的\n字符输出。 scanf匹配规则:scanf函数在读取整型数、浮点数、字符串会忽略'\n'字符 判断闰年 #incl 阅读全文
posted @ 2024-08-29 17:17 给我一碗炒粉 阅读(114) 评论(0) 推荐(0)
摘要: 线性表 线性表的初始化 Status InitList(SqList &L) { L.elem = (ElemType *) malloc(sizeof(ElemType) * MAXSIZE); if (!L.elem) exit(OVERFLOW); L.length = 0; return O 阅读全文
posted @ 2024-08-29 17:15 给我一碗炒粉 阅读(70) 评论(0) 推荐(0)
摘要: [https://www.bilibili.com/video/BV1qz4y1p767/]() # 线性表 ## 线性表的初始化(顺序表) ```c++ Status InitList(SqList &L) { L.elem = (ElemType *) malloc(sizeof(ElemTyp 阅读全文
posted @ 2023-08-14 18:50 给我一碗炒粉 阅读(178) 评论(0) 推荐(0)
摘要: jdbc连接 DriverManager 驱动程序管理器是负责管理驱动程序的,驱动注册以后,会保存在DriverManager中的已注册列表中后续的处理就可以对这个列表进行操作. 注册驱动方式 1.DriverManager.registerDriver(); 2.写代码实现 Class.forNa 阅读全文
posted @ 2023-04-20 22:27 给我一碗炒粉 阅读(64) 评论(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 给我一碗炒粉 阅读(32) 评论(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 给我一碗炒粉 阅读(65) 评论(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 给我一碗炒粉 阅读(45) 评论(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 给我一碗炒粉 阅读(70) 评论(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 给我一碗炒粉 阅读(53) 评论(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 给我一碗炒粉 阅读(142) 评论(0) 推荐(0)