- 博客(6)
- 收藏
- 关注
转载 C++中CSV表格操作
#include <iostream> #include <string> #include <vector> #include <fstream> #include <sstream> using namespace std; int main() { // 写文件 ofstream outFile; outFile.open("data.csv", ios::out); // 打开模式可省略 outFile <<.
2021-12-20 15:19:25
568
转载 关于树的一些操作
#include <iostream> #include<queue> using namespace std; //定义二叉树结构 typedef struct Node { char data; struct Node* lchild, * rchild; }*BiTree,BiTNode;//定义BiTNode为Node型是为了后面开辟新节点空间,用来添加节点等功能 //先序创建二叉树 void CreateBiTree(BiTree& T)...
2021-06-17 20:08:36
97
原创 关于栈的一些基本操作
关于栈的一些基本操作,用链表方式写的,持续更新中.... #include <iostream> using namespace std; typedef int DataType; #define Node ElemType class Node { public: DataType date; ElemType *next; }; class StackLinkList { public: StackLinkList(); //创建栈 ...
2021-05-26 21:23:32
132
原创 关于队列的一些操作
关于队列的一些操作(注:以链表方式写的),持续更新中..... #include<iostream> using namespace std; class Node { public: int data; Node *next; }; class Linkqueue { public: Linkqueue(); //初始化 ~Linkqueue();//销毁 bool IsEmpty(); //判断是否为空 void EnQueue();...
2021-05-26 21:20:09
61
原创 关于双链表的一些基本操作
写了一个关于双链表的操作,功能还没添加完,持续更新中...... #include<iostream> using namespace std; #define x NULL #define Node Elemtype //定义 typedef int Datatype; //别名 //构建一个Node类 class Node { public: int data; Node *pre; Node *next; }; //构建一个双链表类 class ...
2021-05-20 19:36:49
97
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人