![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
栈队列链表
文章平均质量分 73
xinwen1995
这个作者很懒,什么都没留下…
展开
-
队列的基本操作
//队列的基本操作 //队列只用一次动态分配内存,也就是说在一个内存单元里存储元素,所以要用到数组存储原创 2015-04-10 15:14:58 · 452 阅读 · 0 评论 -
栈的基本操作练习题
后缀记法的实现 例:6523+8*+3+* = ( (2+3)*8+5+3)*6 =288 没什么技术成分,新手练手。 #include #include typedef struct Post { int data; struct Post *Next; struct Post *pBottom; }*List; void init(List p) { if(p=原创 2015-04-08 15:22:26 · 1610 阅读 · 0 评论 -
栈的基本操作
//栈的初始化,进栈,出栈,遍历栈,清空栈#include #include #include #include typedef struct Node { int data; Node *next; }*pNode; typedef struct Stack { pNode ptop; pNode pBottom; }STACK,*pStack; //-------原创 2015-04-07 19:52:30 · 439 阅读 · 0 评论 -
链表基本操作(升级版)
#include #include #include typedef struct node { char num[20]; char name[20]; char sex[5]; char major[20]; char phone[20]; node *next; }*List; List creat(List head,node x) { if(head == NU原创 2015-04-06 09:20:20 · 477 阅读 · 0 评论 -
UVA 矩阵链乘
#include #include #include using namespace std; struct Matrix { int a,b; Matrix(int a=0,int b=0):a(a),b(b) {} }m[26]; stack s; int main() { int n; cin>>n; for (int i=0;i<n;i++) { string原创 2015-04-27 21:27:44 · 531 阅读 · 0 评论 -
链表的排序(冒泡)
4、已有两个链表x和y,每个链表的结点包括学号和成绩,要求把两个链表合并,按学号升序排列。 #include #include #include using namespace std; typedef struct list { int num; int score; struct list *pNext; }*plist;原创 2015-06-26 21:13:13 · 577 阅读 · 0 评论 -
链表基本操作
#include #include #include typedef struct node { char num[20]; char name[20]; char sex[5]; char major[20]; char phone[20]; node *next; }*List; List insert(List head,node x) { if(head == N原创 2015-04-05 15:17:56 · 413 阅读 · 0 评论 -
HDU 1434 幸福列车 (附优先队列讲解)
http://www.cnblogs.com/heqinghui/archive/2013/07/30/3225407.html ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑优先队列讲解链接地址↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ 幸福列车 Time Limit: 20000/10000 MS (Java/Others) Memory Limit:原创 2016-02-29 17:07:51 · 514 阅读 · 0 评论 -
HDU 4857 逃生 (反向拓扑排序+优先队列)
逃生 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3592 Accepted Submission(s): 1021 Problem Description 糟糕的事情发生啦,现在大家都忙着逃命。但是逃命原创 2016-05-24 22:43:05 · 417 阅读 · 0 评论