2022年11月13日
摘要: #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <math.h> /** 循环队列的顺序存储实现 队列头在队列第一个元素前 不指向元素 队列尾是指向队列最后一个元素 */ #define ERROR -1 #d 阅读全文
posted @ 2022-11-13 20:01 Rabbit_XIN 阅读(50) 评论(0) 推荐(0)
  2022年11月12日
摘要: 思路 将中缀表达式转化为后缀表达式处理 数据结构 栈 注 目前只适用 10以内的带括号的 +-*/^ 运算 #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <math.h> #define ElementTyp 阅读全文
posted @ 2022-11-12 21:51 Rabbit_XIN 阅读(50) 评论(0) 推荐(0)
  2022年11月11日
摘要: #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #define ElementType int #define ERROR -1 /* 用链表表示栈 该栈初始是指向一个空节点 栈插入删除操作都是在链表头部形成栈结构 栈头一直指向 阅读全文
posted @ 2022-11-11 13:09 Rabbit_XIN 阅读(23) 评论(0) 推荐(0)
  2022年11月10日
摘要: #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #define ElementType int #define ERROR -1 typedef int Position; struct SNode{ ElementType * 阅读全文
posted @ 2022-11-10 23:17 Rabbit_XIN 阅读(33) 评论(0) 推荐(0)
  2022年11月8日
摘要: #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <time.h> /* 该链表不带头节点 第一个节点下标从0开始*/ #define ElementType int #define ERROR NULL typ 阅读全文
posted @ 2022-11-08 16:36 Rabbit_XIN 阅读(25) 评论(0) 推荐(0)
  2022年11月2日
摘要: #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #define ElementType int #define MAXSIZE 100 #define ERROR -1 typedef int Position; typedef 阅读全文
posted @ 2022-11-02 22:16 Rabbit_XIN 阅读(17) 评论(0) 推荐(0)
  2022年1月18日
摘要: 1 代表 X 0 代表 O 用到了遍历 import java.util.Scanner; // look at # game who win public class Hello { public static void main(String[] args) { Scanner in = new 阅读全文
posted @ 2022-01-18 19:19 Rabbit_XIN 阅读(61) 评论(0) 推荐(0)
  2022年1月17日
摘要: 利用枚举法 import java.util.Scanner; public class Hello { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt( 阅读全文
posted @ 2022-01-17 15:48 Rabbit_XIN 阅读(79) 评论(0) 推荐(0)
摘要: //连续输出前50个素数import java.util.Scanner; public class Hello { public static void main(String[] args) { Scanner in = new Scanner(System.in); int isPrime ; 阅读全文
posted @ 2022-01-17 11:27 Rabbit_XIN 阅读(54) 评论(0) 推荐(0)
  2022年1月16日
摘要: import java.util.Scanner; public class Hello { public static void main(String[] args) { Scanner in = new Scanner(System.in); int number =(int) (Math.r 阅读全文
posted @ 2022-01-16 16:09 Rabbit_XIN 阅读(16) 评论(0) 推荐(0)