摘要: 使用vscode打开项目,首先确认git工作区是否是干净的 git status 创建一个新的分析,存放一个功能,等所有的功能都开发完成后,再进行合并(master) 创建一个login git 分支 git checkout -b login 查看当前项目的所有分支 git branch * lo 阅读全文
posted @ 2021-11-08 16:02 成强 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 1.中文字体库导入乱码问题 1.修改clion中的文件编码配置 2.按住 Ctrl+Shift+Alt+/,选中Registry…,然后取消run.processes.with.pty 3.cmakelist.txt导入字体文件,注意不要加u8了,不然会乱码 #字体文件 include_direct 阅读全文
posted @ 2024-07-26 22:49 成强 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 字符串 #include <stdio.h> #include <malloc.h> #include <stdbool.h> #define MaxSize 100 /*静态串的定义*/ typedef struct{ /*串的最大长度+ 一个'\0',并且从下标1开始存储*/ char cha[ 阅读全文
posted @ 2024-07-21 16:04 成强 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 顺序队列的操作 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; /*链式队列的节点*/ typedef struct LinkNode{ /*数据域*/ ElemType data; 阅读全文
posted @ 2024-07-13 12:37 成强 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 顺序队列的操作 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; #define MaxSize 50 /*顺序队列的类型定义*/ typedef struct { /*用一维数组存放队 阅读全文
posted @ 2024-07-12 23:01 成强 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 修改导入方式 // 方式二,此方法在开发环境以及生产环境下都能放到组件上下文对象(推荐) const {proxy} = getCurrentInstance(); 改为 // 方式二,此方法在开发环境以及生产环境下都能放到组件上下文对象(推荐) const proxy = getCurrentIn 阅读全文
posted @ 2024-07-12 09:38 成强 阅读(10) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; /*栈的链式存储类型*/ typedef struct StackNode{ /*数据域*/ ElemType data; /*指针域* 阅读全文
posted @ 2024-07-10 17:24 成强 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; /**/ #define MaxSize 50 /**/ typedef struct { ElemType data[MaxSize] 阅读全文
posted @ 2024-07-10 17:23 成强 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1.定义一个双链表 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; /* 定义一个单链表 */ typedef struct DNode { /*数据域*/ ElemType data 阅读全文
posted @ 2024-07-08 00:31 成强 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 单链表的创建:头插法 #include <stdio.h> #include <malloc.h> #include <stdbool.h> typedef int ElemType; /*定义一个单链表*/ typedef struct LNode{ ElemType data; /*下一个元素的 阅读全文
posted @ 2024-06-30 00:14 成强 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 顺序表的初始化:静态分配 /*指定 int 的别名 */ typedef int ElemType; /*数组的最大容量*/ #define MaxSize 50 typedef struct Sqlist{ ElemType data[MaxSize]; int length; } Sqlist; 阅读全文
posted @ 2024-06-29 20:01 成强 阅读(4) 评论(0) 推荐(0) 编辑