子类继承父类的初始化方法 class student1(student): #student为父类,父类有name,age,stno这些属性 def __init__(self,name,age,stno,addr): #在父类的基础上加了一个addr属性 student.__init(self,n ...
分类:
编程语言 时间:
2020-04-04 17:24:17
阅读次数:
72
typedef struct LNode *List; struct Lnode { ElementType Element[MaxSize]; int length; }; 静态查找: 方法1:顺序查找(时间复杂度为O(n)) int SequentialSearch (List Tbl, Ele ...
分类:
其他好文 时间:
2020-03-31 23:02:22
阅读次数:
114
Queue.h #pragma once #include<iostream> using namespace std; class Queue { public: int front; int rear; int maxSize; int* elements; Queue(int size=20) ...
分类:
其他好文 时间:
2020-03-31 10:45:00
阅读次数:
73
@Configuration@Getterpublic class PPTConf { @Value("${ppt.template.folder}") private String templateFolder; @Value("${chrome.driver.path}") private St ...
分类:
其他好文 时间:
2020-03-30 19:40:41
阅读次数:
67
一.思维导图 二.重要概念 1.算法 (1)评价算法的优劣性:时间复杂度(随问题规模变化)和空间复杂度(随占用额外的存储空间变化) 2.链表 (1)头插法与尾插法 3.栈 (1).栈的插入与删除是对栈顶操作的,插入要判断是否栈满,删除要判断是否栈空 (2).栈的基本操作为push(入栈)和pop(出 ...
分类:
其他好文 时间:
2020-03-29 10:42:07
阅读次数:
70
//堆栈 stack 一个有0个或多个元素的又穷线性表//长度为MaxSize 的堆栈Stack CreateStack(int MaxSize); //生成空栈表,最大MaxSizeint IsFull(Stack S, int MaxSize); //判断堆栈S是否已满void Push(Sta ...
分类:
其他好文 时间:
2020-03-28 20:05:46
阅读次数:
77
题目描述 给定一个有N个顶点和E条边的无向图,请用DFS和BFS分别列出其所有的连通集。假设顶点从0到N?1编号。进行搜索时,假设我们总是从编号最小的顶点出发,按编号递增的顺序访问邻接点。 输入格式: 输入第1行给出2个整数N(0 include define MAXSIZE 10 struct G ...
分类:
其他好文 时间:
2020-03-27 12:35:47
阅读次数:
138
队列:具有一定操作约束的线性表,只能在一端插入,在另一端删除。 特点:先来先服务,先进先出表 头front,尾rear 顺序存储 1 #define MaxSize <储存数据元素的最大个数> 2 3 struct QNode { 4 5 ElementType Data[MaxSize]; 6 7 ...
分类:
其他好文 时间:
2020-03-26 01:27:23
阅读次数:
94
#include<iostream> using namespace std; #define ElemType int const int MaxSize=50; typedef struct{ ElemType data[MaxSize]; int front=0,rear=0; }SqQueu ...
分类:
其他好文 时间:
2020-03-24 22:52:52
阅读次数:
104