随笔分类 -  c++

denglu
摘要:#include<iostream>using namespace std;#include<string> #include<fstream>#include <conio.h>#include<string.h>#include<windows.h>typedef struct user { s 阅读全文
posted @ 2020-11-24 08:55 柠檬tea的味道 阅读(329) 评论(0) 推荐(0)
循环队列
摘要://循环队列#include<iostream>using namespace std;typedef struct Qq{ int *base; int front; int rear;}Qq;void chushihua(Qq &q) { q.base = new int[15]; if (!q 阅读全文
posted @ 2020-11-09 18:28 柠檬tea的味道 阅读(57) 评论(0) 推荐(0)
队列
摘要:#include<iostream>using namespace std; // 连队列 typedef struct Q { int date; struct Q *next;}Q, *Qq;typedef struct { Qq front; Qq rear;}Link;void gouzao 阅读全文
posted @ 2020-11-09 09:09 柠檬tea的味道 阅读(85) 评论(0) 推荐(0)
顺序表和链表的区别
摘要: 阅读全文
posted @ 2020-10-23 18:30 柠檬tea的味道 阅读(58) 评论(0) 推荐(0)
单链表的操作
摘要:#include<iostream>using namespace std;/*typedef struct student { char name[6]; int xuehao;}student;*/typedef struct LNode { int date; struct LNode* ne 阅读全文
posted @ 2020-10-23 17:46 柠檬tea的味道 阅读(98) 评论(0) 推荐(0)
线性表的顺序表现形式
摘要:#include<iostream>using namespace std;typedef struct { int* a; int length;}Sqlist;// 创建线性表 void InitList(Sqlist& L) { L.a = new int[20]; if (!L.a) exi 阅读全文
posted @ 2020-10-19 18:22 柠檬tea的味道 阅读(99) 评论(0) 推荐(0)