数据结构作业
codediyi
你可以关注我的知乎主页,去看我分享的更多内容。
https://www.zhihu.com/people/codediyi
展开
-
基于双向循环链表实现的队列
#include<cstdio>#include<cstring>#include<algorithm>using namespace std;typedef bool status;typedef int elmetype;typedef struct node{ elmetype date; struct node *next,*front...原创 2019-10-27 13:23:00 · 302 阅读 · 1 评论 -
数据结构——基于顺序表实现的栈stack
注意:(1)如果我们需要通过函数修改顺序表内的信息,需要传递引用(2)如果我们只是读取顺序表内的内容,只需要传递指针(3)函数返回值使用bool类型,用来返回状态,而其他的值可以使用引用的方式传进来;//stack://(1)creat a stack//(2)destroy a stack//(3)judge empty//(4)push//(5)pop//(6)getto...原创 2019-10-26 17:03:30 · 158 阅读 · 0 评论