2025年11月7日

摘要: include #include <stdio.h>#include "btree.h"int main(){ BTNode b=NULL; char str[MaxSize]; printf("请以括号表示法输入要建立的二叉树\n"); scanf("%s",str);CreateBTNode(b 阅读全文
posted @ 2025-11-07 17:08 wss0920 阅读(14) 评论(0) 推荐(0)

2025年11月1日

摘要: 第二章——线性表 4.对于顺序表L,指出以下算法的功能。 void fun(SqList * &L) { int i,j=0; for (i=1;i<L->length;i++) if (L->data[i] > L->data[j]) j=i; for (i=j;i<L->length-1;i++ 阅读全文
posted @ 2025-11-01 00:34 wss0920 阅读(9) 评论(0) 推荐(0)
摘要: 第一章——绪论 3.简述数据逻辑结构与存储结构的关系。 /* 逻辑结构是数据之间抽象的逻辑关系,而存储结构是这种关系在计算机内存中的具体实现;同一逻辑结构可以选用不同的存储结构来实现,不同的选择会直接影响程序的效率和功能。 */ 10.分析下面程序段中循环语句的执行次数。 int j=0,s=0,n 阅读全文
posted @ 2025-11-01 00:07 wss0920 阅读(9) 评论(0) 推荐(0)

2025年10月23日

摘要: 成语 血脉偾(fen四声)张:形容情绪极度激动、兴奋,导致血液流动加速,血管膨胀的感觉。 如椽(chuan二声)巨笔:像椽子一样巨大的笔。形容宏大的写作气魄、杰出的写作才能,或指影响力深远的文章/作品。【东晋文人王珣(xun二声)梦见有人将一支像椽子那样巨大的笔授予他。醒来后,他告诉他人:“此当有大 阅读全文
posted @ 2025-10-23 23:48 wss0920 阅读(28) 评论(0) 推荐(0)

2025年10月20日

摘要: typedef struct { ElemType data[MaxSize]; int front,rear; }SqQueue; //初始化队列 void InitQueue(SqQueue * &q) { q=(SqQueue *)malloc(sizeof(SqQueue)); q->fro 阅读全文
posted @ 2025-10-20 20:58 wss0920 阅读(10) 评论(0) 推荐(0)
摘要: typedef struct { ElemType data[MaxSize]; int top; }SqStack; //初始化栈 void InitStack(SqStack * &s) { s=(SqStack *)malloc(sizeof(SqStack)); s->top = -1; } 阅读全文
posted @ 2025-10-20 20:42 wss0920 阅读(6) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define MaxSize 50 typedef struct{ ElemType data[MaxSize]; int length; }SqList; //给这个结构体起别名SqList typedef int ElemType; //给int起别名El 阅读全文
posted @ 2025-10-20 00:02 wss0920 阅读(6) 评论(0) 推荐(0)

2025年10月18日

摘要: 建立一个后缀名为.java,文件名为xx的文件 编写代码 例: // 文件名为code.java public class code{ // 需要确保名字与文件名一样 public static void main(String[] args){ System.out.print("Hello Wo 阅读全文
posted @ 2025-10-18 14:10 wss0920 阅读(14) 评论(0) 推荐(0)

2025年10月17日

摘要: 打开cmd方式 命令提示符快捷键: win+r,输入cmd 在任意文件夹下,shift+右键,点击powershell 文件夹内的地址栏,输入cmd+空格+路径 管理员方式运行 选择以管理员身份运行 常用Dos命令 # 盘符切换,例如c盘到d盘 C:\Users\wss_533>D: D:\> # 阅读全文
posted @ 2025-10-17 23:50 wss0920 阅读(18) 评论(0) 推荐(0)
摘要: tab: 切换菜单,或空4格 shift+ctrl: 切换输入法 fn+alt+f4 或 ctrl+w: 关闭窗口 ctrl+x: 剪切 ctrl+f: 查找 ctrl+z: 撤销 ctrl+y: 取消撤销 shift+delete: 永久删除 win+r: 运行界面 win+e: 主文件夹 win 阅读全文
posted @ 2025-10-17 21:56 wss0920 阅读(14) 评论(0) 推荐(0)