2021年10月27日
摘要: 作业26 #include <iostream> #include <stdlib.h> #include <string> using namespace std; class student { private: string name1; int age; public: void setSt 阅读全文
posted @ 2021-10-27 19:23 HuJiao粉 阅读(70) 评论(0) 推荐(0)
2021年7月11日
摘要: 作业18 #include <iostream> #define N 5 using namespace std; void main() { double *p; double max,min,temp; p=new double[N]; for (int i=0;i<N;i++) cin>>*( 阅读全文
posted @ 2021-07-11 23:15 HuJiao粉 阅读(44) 评论(0) 推荐(0)
2021年7月4日
摘要: 作业15 #include <iostream> #include <string> using namespace std; class People { public: string number; string name; string id_number; public: People(){ 阅读全文
posted @ 2021-07-04 16:02 HuJiao粉 阅读(38) 评论(0) 推荐(0)
2021年7月3日
摘要: 邻接矩阵定义 const int vnum=20; typedef struct gp { VertexType vexs[vnum]; //顶点信息 int arcs[vnum][vnum]; //邻接矩阵 int vexnum,arcnum; }Graph; 带权图的邻接矩阵 int最大整数:3 阅读全文
posted @ 2021-07-03 10:27 HuJiao粉 阅读(41) 评论(0) 推荐(0)
2021年6月27日
摘要: 作业13 头函数:menu.h #pragma once #if!(menu_H) #define menu_h #include <iostream> using namespace std; class calc { private: int a, b, p, m; public: calc() 阅读全文
posted @ 2021-06-27 16:07 HuJiao粉 阅读(35) 评论(0) 推荐(0)
2021年6月20日
摘要: 作业9 #include <iostream> using namespace std; class CType//基类 { private: int radius; int width; public: CType():radius(16),width(185)//常量用参数列表初始化 { //r 阅读全文
posted @ 2021-06-20 14:57 HuJiao粉 阅读(31) 评论(0) 推荐(0)
2021年6月6日
摘要: 作业4 #include<iostream> #define PI 3.1415926 using namespace std; class Circle//类名 { private: float Radius; public: Circle(float r);//构造函数,参数用来初始化私有变量 阅读全文
posted @ 2021-06-06 15:11 HuJiao粉 阅读(44) 评论(0) 推荐(0)
2021年6月5日
摘要: 作业1 #include<iostream>#include<string>#define N 4using namespace std;class student{private: int num; string name; string sex; int age; public: student 阅读全文
posted @ 2021-06-05 10:30 HuJiao粉 阅读(51) 评论(0) 推荐(0)
摘要: 二叉链表的类型定义——教材101页 typedef struct btnode { DataType data; struct btnode *lchild,*rchild;//指向左右孩子的指针 } *BinTree; 三叉链表的类型定义——教材102页 typedef struct ttnode 阅读全文
posted @ 2021-06-05 09:47 HuJiao粉 阅读(46) 评论(0) 推荐(0)
2021年5月30日
摘要: 栈的顺序实现 注意:每一个代码请对照教材相应的图,这样方便理解 顺序栈定义 const int maxsize=6; typedef struct seqstack { DataType data[maxsize]; int top; }SeqStk; 基本运算 1 初始化 int InitStac 阅读全文
posted @ 2021-05-30 21:48 HuJiao粉 阅读(94) 评论(0) 推荐(0)