上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 56 下一页
摘要: 解决了中文乱码问题 阅读全文
posted @ 2019-09-05 21:00 青衫客36 阅读(160) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> <h3>注册页面</h3> <form action="/day3/reg" method="POST"> 账号: <input type="text" name="us 阅读全文
posted @ 2019-09-05 20:58 青衫客36 阅读(178) 评论(0) 推荐(0) 编辑
摘要: package per.mjn._08_cal; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServle 阅读全文
posted @ 2019-09-05 20:57 青衫客36 阅读(376) 评论(0) 推荐(0) 编辑
摘要: Operation.java OperationFactory.java 测试类 阅读全文
posted @ 2019-09-05 20:54 青衫客36 阅读(179) 评论(0) 推荐(0) 编辑
摘要: // 二叉搜索树的查找操作Find Position Find(ElementType X, BinTree BST) { if(!BST) return NULL; if(X > BST->Data) return Find(X, BST->Right); else if(X < BST->Data) return Find(X, BST->Left); else return BST; } / 阅读全文
posted @ 2019-09-05 10:35 青衫客36 阅读(145) 评论(0) 推荐(0) 编辑
摘要: // 树的同构 /* 1. 二叉树的表示 2. 建二叉树 3. 同构判别 */ // 1. 二叉树的表示 // 结构数组表示二叉树: 静态链表 #define MaxTree 10 #define ElementType char #define Tree int #define Null -1 struct TreeNode { ElementType Element; Tree Left; T 阅读全文
posted @ 2019-09-04 17:55 青衫客36 阅读(159) 评论(0) 推荐(0) 编辑
摘要: // 遍历二叉树的应用 // 输出二叉树中的叶子结点 // 在二叉树的遍历算法中增加检测结点的"左右子树是否都为空" void PreOrderPrintLeaves(BinTree BT) { if(BT) { if(!BT->Left && !BT->Right) printf("%d", BT->Data); PreOrderPrintLeaves(BT->Left); PreOrderPr 阅读全文
posted @ 2019-09-04 17:54 青衫客36 阅读(181) 评论(0) 推荐(0) 编辑
摘要: // 二叉树的存储结构 typedef struct TreeNode *BinTree; typedef BinTree Position; struct TreeNode { ElementType Data; BinTree Left; BinTree Right; }; void PreOrderTraversal(BinTree BT) { if(BT) { printf("%d", B 阅读全文
posted @ 2019-09-04 17:53 青衫客36 阅读(184) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> typedef struct LNode *List; struct LNode { ElementType Element[MAXSIZE]; int length; }; // 顺序查找 int SequentialSearch(List Tb1, ElementType K) { int i; Tb1->Element[0] = K; for(i = Tb 阅读全文
posted @ 2019-09-04 17:52 青衫客36 阅读(105) 评论(0) 推荐(0) 编辑
摘要: package oop; /* Animal a = new Dog(); * 对象a具有两种类型 * 编译类型: 声明对象变量的类型, Animal, 表示把对象看成什么类型 * 运行类型: 对象的真实类型, Dog, 运行类型-->对象的真实类型 * 注: 编译类型必须是运行类型的父类或相同类型 * 当编译类型和运行类型不同的时候, 就产生了多态 * * 所谓多态: 对象具... 阅读全文
posted @ 2019-09-03 21:09 青衫客36 阅读(146) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 56 下一页