- 博客(17)
- 收藏
- 关注
原创 JSP作业三
6.编写两个Tag文件Rect.tag和Circle.tag。Rect负责计算并显示矩形的面积,Circle负责计算并显示圆的面积。编写一个JSP页面lianxi6.jsp,该JSP页面使用Tag标记调用Rect.tag和Circle.tag.。lianxi6.jsp:<%@ page contentType = "text/html;charset=UTF-8" %>&l...
2019-03-24 21:04:58 696
原创 Android作业二
这次Android作业主要实现一个计算器activity_main.xml:<?xml version="1.0" encoding="utf-8"?><GridLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent...
2019-03-17 23:46:38 244
原创 链式二叉树
#include#includeusing namespace std;templatestruct Node{T data;Node *lchild,*rchild;};template class Tree{public:Tree(){root=Creat(root);}~Tree(){Release(root);}void PreO
2017-12-07 10:39:26 225
原创 二叉树顺序结构
试验内容:自己确定一个二叉树(树结点类型、数目和结构自定)利用顺序结构方法存储。实现树的构造,并完成:1) 层序输出结点数据;2) 以合理的格式,输出各个结点和双亲、孩子结点信息;3) 输出所有的叶子结点信息;4)分析你的算法对于给定的二叉树的存储效率。#include#include#includeusing namespace std;class
2017-10-30 18:30:03 881
原创 十进制
#include#includeusing namespace std;void main(){int a;int b[1000];coutcin>>a;int i=0;while(a){b[i]=a%2;a=a/2;i++;}i=i-1;coutfor(i;i>=0;i--){cout}cout}
2017-10-24 00:11:42 273
原创 链队列
#include#includeusing namespace std;templatestruct Node{T data;Node*next;};templateclass Student{public:Student();void enqueue(T x);T dequeue();T getqueue();int empty(){
2017-10-24 00:10:55 202
原创 循环队列
#include#includeusing namespace std;templateclass Student{public:Student(){front=rear=49;}void enqueue(T x);T dequeue();T getqueue();int empty(){if(front==rear) return 1;retu
2017-10-24 00:10:16 285
原创 链栈
#includeusing namespace std;templatestruct Node{T data;Node *next;};templateclass Student{public:Student();Student(T a[],int n);~Student();T Get(int i);int locate(T x);
2017-10-24 00:08:10 232
原创 顺序栈
#include#includeusing namespace std;templateclass Student{public:Student(){top=-1;}~Student(){}void push(T x);T pop();T gettop(){if(top!=-1) return data[top];}int empty(){if(top=
2017-10-24 00:07:07 268
原创 实验2循环双链表
#includeusing namespace std;templatestruct Node{T data;Node *next,*prior;};templateclass Student{public:Student();Student(T a[],int n);~Student();T Get(int i);int locate(
2017-10-19 11:39:46 371
原创 实验2循环链表
#includeusing namespace std;templatestruct Node{T data;Node *next;};templateclass Student{public:Student();Student(T a[],int n);~Student();int Length();T Get(int i);int
2017-10-11 22:02:18 326
原创 实验2单链表
#includeusing namespace std;templatestruct Node{T data;Node *next;};templateclass Student{public:Student();Student(T a[],int n);~Student();T Get(int i);int locate(T x);
2017-10-11 20:48:46 625
原创 顺序表
一实验目的 1.熟练掌握线性表的结构特点,掌握顺序表的基本操作。 2.巩固C++相关的程序设计方法与技术。 3.学会使用顺序表解决实际问题。二实验内容 1.顺序表的建立与操作实现 建立n个元素的顺序表,实现相关的操作:输出,插入,删除,查找等功能。编写完整程序实现。 2.总结收获不足,疑问
2017-09-23 12:08:44 338
原创 关于慕课网学习的前端基础笔记
html慕课学习笔记标签1.<p>段落文本</p>2.<hx>标题文本</hx>(x为1-6)3.<em> 表示强调,<strong> 表示更强烈的强调。并且在浏览器中<em> 默认用斜体表示,<strong> 用粗体表示。3.<span>标签是没有语义的,它的作用就是...
2017-09-06 21:26:40 728 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人