上机
EltonQu
这个作者很懒,什么都没留下…
展开
-
二叉树的创建,先序遍历及求高度和求叶结点个数
#include<iostream> using namespace std; struct Tree { Tree *lchild; Tree *rchild; char data; }; Tree *creatTree(Tree *t) { char ch; cin>>ch; if(ch...原创 2019-04-13 23:13:15 · 821 阅读 · 0 评论 -
复试练习
#include<iostream> #include<cstdio> using namespace std; int main() { char str[100]; char ch,b; int i = 0,num=0,num1=0; while((ch=getchar())!='#') { char a = s...原创 2019-11-19 19:28:15 · 153 阅读 · 0 评论 -
循环链表的创建与遍历
typedef struct Node { int data; struct Node *next; }Node; typedef struct Node* LinkList; //给Node*起别名叫LinkList LinkList creatList(LinkList head,int n) //循环链表的建立 { LinkList p = head; ...原创 2019-04-12 21:45:34 · 1206 阅读 · 0 评论 -
单链表删除节点值为mink和maxk之间的节点
#include<iostream> using namespace std; typedef struct Node { int data; struct Node *next; }Node; typedef struct Node* LinkList; //指针类型取别名 LinkList creatList(LinkList head, int n) { ...原创 2019-04-12 18:12:05 · 1539 阅读 · 1 评论