会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
式微胡不归
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
16
17
18
19
20
21
22
下一页
2016年1月3日
一个中缀式到其他式子的转换方法~~
摘要: 35,15,+,80,70,-,*,20,///后缀表达方式(((35+15)*(80-70))/20)=25//中缀表达方式/,*,+,35,15,-,80,70,20//前缀表达方式人的思维方式很容易固定~~!正如习惯拉10进制。就对2,3,4,8,16等进制不知所措一样~~!人们习惯的运算方...
阅读全文
posted @ 2016-01-03 12:07 式微胡不归
阅读(187)
评论(0)
推荐(0)
2015年12月20日
初学杂文 数据表映射
摘要: class Teacher{ private String name; private Student student []; //多个学生用对象数组 public Teacher(String name) { this.name = name ; } public void setStudent(...
阅读全文
posted @ 2015-12-20 10:55 式微胡不归
阅读(108)
评论(0)
推荐(0)
2015年12月17日
初学杂文 String类
摘要: String: 两个字符床 String stra 和String strb stra = "hello " ; strb = "hello " 在对象池中开辟一块内存"hello " stra与strb都指向同一块地址。 字符串的不可改变性 在JavaAPI文档...
阅读全文
posted @ 2015-12-17 17:27 式微胡不归
阅读(166)
评论(0)
推荐(0)
2015年11月29日
拓扑排序(Topological)
摘要: #define _CRT_SECURE_NO_WARNINGS#include#include#includeusing namespace std;#define MAX 20typedef struct node{ struct node * nextarc; char Info;}...
阅读全文
posted @ 2015-11-29 13:04 式微胡不归
阅读(138)
评论(0)
推荐(0)
一个邻接表
摘要: #define _CRT_SECURE_NO_WARNINGS#include#include#define MAX 20typedef struct node{ struct node * nextarc; char Info;}ArcNode,*pArcNode;typedef st...
阅读全文
posted @ 2015-11-29 09:34 式微胡不归
阅读(271)
评论(0)
推荐(0)
运算符重载(矩阵运算)
摘要: Matrix.h#include"Matrix.h" #includeusing namespace std;Matrix::Matrix(int r = 0,int c = 0){ row = r; column = c;}Matrix Matrix::operator+ (co...
阅读全文
posted @ 2015-11-29 08:43 式微胡不归
阅读(1399)
评论(1)
推荐(0)
最小生成树普利姆算法
摘要: #define _CRT_SECURE_NO_WARNINGS#include#include#include#define MAX 20#define INFINITY 0x7ffffffftypedef struct{ int U[MAX][MAX]; char adj[MAX][10]; in...
阅读全文
posted @ 2015-11-29 08:35 式微胡不归
阅读(165)
评论(0)
推荐(0)
2015年11月18日
Huffman编码
摘要: #define _CRT_SECURE_NO_WARNINGS#include#include#include#includeusing namespace std;typedef struct node{ //哈夫曼树int weight;char data;int parent, lchild,...
阅读全文
posted @ 2015-11-18 19:18 式微胡不归
阅读(137)
评论(0)
推荐(0)
2015年11月14日
层次遍历
摘要: void traverse(pBitree root){ queueT; T.push(root); while (!T.empty()) { printf("%c", T.front()->data); if (T.front()->lchild!=NULL) T.push(T.front(...
阅读全文
posted @ 2015-11-14 11:24 式微胡不归
阅读(163)
评论(0)
推荐(0)
二叉树叶子数目计算
摘要: #define _CRT_SECURE_NO_WARNINGS#include#include#includeusing namespace std;typedef struct tree{ char data; tree *lchild; tree *rchild;}Bitree, *pBitre...
阅读全文
posted @ 2015-11-14 09:59 式微胡不归
阅读(548)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
下一页
公告