会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
曹孟德
管理
上一页
1
···
14
15
16
17
18
19
20
下一页
2015年4月14日
多项式求导
摘要: #includeusing namespace std;class poly{public: int coef; int expon; poly *next;};poly*input(); /*输入函数*/poly*attach(poly*...
阅读全文
posted @ 2015-04-14 22:28 曹孟德
阅读(716)
评论(0)
推荐(0)
2015年4月12日
多项式相加(链表)
摘要: #includeusing namespace std;class poly{public: int coef; int expon; poly *next;};poly*input(); //输入函数poly *poly...
阅读全文
posted @ 2015-04-12 21:40 曹孟德
阅读(559)
评论(0)
推荐(0)
2015年4月10日
循环队列(数组存储)
摘要: #includeusing namespace std;#define Maxsize 100class Qune{public: int data[Maxsize]; int front; int rear;};void Qinsert(Qune&A,int x); //入队int Qdelet...
阅读全文
posted @ 2015-04-10 20:43 曹孟德
阅读(1534)
评论(0)
推荐(0)
2015年4月9日
一个数组构造两个堆栈
摘要: ***用一个数组表示两个堆栈,最大限度的利用空间 若果像右图中从中间分成两部分,则可能存在其中一个堆栈满了,而另一个堆栈还有空的,为你最大限度的利用空间,需要两边像中间长,知道指针碰头表示堆栈已满
阅读全文
posted @ 2015-04-09 21:03 曹孟德
阅读(721)
评论(0)
推荐(0)
hdu1862
摘要: //开始把student stu[100000]放置在main()中导致栈溢出,所以必须放在全局位置,//可以调用数组的排序函数sort,包含头文件#include,在默认的情况下,数组sort函数进行升序排序//控制sort的第三个参数,传递函数指针进去,可以按照自己写的函数进行排序#includ...
阅读全文
posted @ 2015-04-09 20:24 曹孟德
阅读(315)
评论(0)
推荐(0)
2015年4月8日
堆栈链表储存
摘要: //堆栈,链表实现#includeusing namespace std;class stack{public: int data; stack*next; };stack*Linkstack(){ stack*s = new stack; s->next = NULL; //生成...
阅读全文
posted @ 2015-04-08 23:11 曹孟德
阅读(230)
评论(0)
推荐(0)
堆栈数组实现
摘要: //堆栈,数组实现#includeusing namespace std;#define Maxsize 100class stack{public: int data[Maxsize]; int top = -1; //保存栈顶下标值};int pop(stack*ptrl);...
阅读全文
posted @ 2015-04-08 22:35 曹孟德
阅读(365)
评论(0)
推荐(0)
2015年4月6日
线性存储(链表存储)
摘要: //链表线性存储#includeusing namespace std;class Date{public: int date; Date*next;};void show(Date*head); //显示函数Date*creat(); ...
阅读全文
posted @ 2015-04-06 23:45 曹孟德
阅读(300)
评论(0)
推荐(0)
2015年3月29日
线性表(顺序储存)
摘要: #include using namespace std; #define Maxsize 100 class LinearList{ public: LinearList() { last = -1; } //空表时last为-1 int data[Maxsize]; //申请表的空间 int last; //末端元素的下标 bool Isempty(Line...
阅读全文
posted @ 2015-03-29 21:14 曹孟德
阅读(218)
评论(0)
推荐(0)
2015年3月28日
多项式的和(线性表数组保存)
摘要: 多项式的和,例如多项式f1(x)=12x^19+13x^8+4x^5-x^3+1,f(x)=21x^21+12x^19+10x^8+4X^6-X^2+3f1(x)可以表示为(12,19) (13,8) (4,5) (-1,3) (1,0)f2(x)可以表示为(21,21) (12,19)(10,8)...
阅读全文
posted @ 2015-03-28 23:23 曹孟德
阅读(393)
评论(0)
推荐(0)
上一页
1
···
14
15
16
17
18
19
20
下一页
公告