07 2024 档案
摘要:1.中文字体库导入乱码问题 1.修改clion中的文件编码配置 2.按住 Ctrl+Shift+Alt+/,选中Registry…,然后取消run.processes.with.pty 3.cmakelist.txt导入字体文件,注意不要加u8了,不然会乱码 #字体文件 include_direct
阅读全文
摘要:字符串 #include <stdio.h> #include <malloc.h> #include <stdbool.h> #define MaxSize 100 /*静态串的定义*/ typedef struct{ /*串的最大长度+ 一个'\0',并且从下标1开始存储*/ char cha[
阅读全文
摘要:顺序队列的操作 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; /*链式队列的节点*/ typedef struct LinkNode{ /*数据域*/ ElemType data;
阅读全文
摘要:顺序队列的操作 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; #define MaxSize 50 /*顺序队列的类型定义*/ typedef struct { /*用一维数组存放队
阅读全文
摘要:修改导入方式 // 方式二,此方法在开发环境以及生产环境下都能放到组件上下文对象(推荐) const {proxy} = getCurrentInstance(); 改为 // 方式二,此方法在开发环境以及生产环境下都能放到组件上下文对象(推荐) const proxy = getCurrentIn
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; /*栈的链式存储类型*/ typedef struct StackNode{ /*数据域*/ ElemType data; /*指针域*
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; /**/ #define MaxSize 50 /**/ typedef struct { ElemType data[MaxSize]
阅读全文
摘要:1.定义一个双链表 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; /* 定义一个单链表 */ typedef struct DNode { /*数据域*/ ElemType data
阅读全文