2018年12月26日

文档编辑(使用map标准库的C++)

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2018-12-26 09:01 ewitt 阅读(1) 评论(0) 推荐(0)

2018年11月29日

顺序表元素分块(左负右正中间零)

摘要: #include void partSort(int arr[],int l,int r) { int p=l,i=l,t,cnt=0; printf("\n负数调在前\n"); for(;i=p;i--) if(arr[i]==0) { t=arr[i];arr[i]=arr[p];arr[p]=t; ... 阅读全文

posted @ 2018-11-29 15:48 ewitt 阅读(172) 评论(0) 推荐(0)

二叉树的基本操作实现,包括二叉搜索树的判断

摘要: #include using namespace std; //定义节点 typedef struct node { struct node *lchild; struct node *rchild; int data; }BiTreeNode, *BiTree; //*BiTree的意思是给 struct node*起了个别名,叫BiTree,故BiTree为... 阅读全文

posted @ 2018-11-29 15:45 ewitt 阅读(210) 评论(0) 推荐(0)

2018年4月27日

递归实现迷宫问题(顺序栈)

摘要: #include #define MaxSize 100 #define M 8 #define N 8 int mg[M+2][N+2]= { {1,1,1,1,1,1,1,1,1,1}, {1,0,0,1,1,0,0,1,0,1}, {1,1,0,1,0,1,0,1,0,1}, {1,0,0,0,0,0,0,0,1,1}, {1,0,1,1,1,0,... 阅读全文

posted @ 2018-04-27 09:00 ewitt 阅读(304) 评论(0) 推荐(0)

2017年12月9日

为什么ado,biz层得先写个接口,然后再实现?

摘要: 为什么ado,biz层得先写个接口,然后再实现?在我写的那个案例中不定义接口也可以 在实际开发中,一个项目肯定不是一个人完成的,这时需要项目经理的角色统一定义接口,负责不同功能模块的开发人员只需实现相应的接口就可以了,项目整个时相互调用,而不用担心由于定义不规范造成调用时出现问题。 还有耦合度,安全 阅读全文

posted @ 2017-12-09 11:43 ewitt 阅读(176) 评论(0) 推荐(0)

2017年12月6日

模拟退火

摘要: clearclc %生成初始解sol_new2=1;%(1)解空间(初始解)sol_new1=2-sol_new2^2;sol_current1 = sol_new1; sol_best1 = sol_new1;sol_current2 = sol_new2; sol_best2 = sol_new 阅读全文

posted @ 2017-12-06 20:10 ewitt 阅读(217) 评论(0) 推荐(0)

2017年10月9日

Elman network with additional notes

摘要: // Author: John McCullock // Date: 10-15-05 // Description: Elman Network Example 1. //http://www.mnemstudio.org/neural-networks-elman.htm #include #include #include #include ... 阅读全文

posted @ 2017-10-09 08:34 ewitt 阅读(198) 评论(0) 推荐(0)

2017年9月14日

c#的委托实例

摘要: the second example: 阅读全文

posted @ 2017-09-14 20:00 ewitt 阅读(167) 评论(0) 推荐(0)

2017年6月12日

用C语言读写数据

摘要: //1-5题 #include "stdio.h" typedef struct { char name[10];//姓名 int subject1,subject2,subject3;//科目1,2,3 long int sno;//学号 }student; int InputTerm(student *stu)//在终端输入数据并每人的计算平均分 { int i=0... 阅读全文

posted @ 2017-06-12 21:03 ewitt 阅读(381) 评论(0) 推荐(0)

2017年6月10日

修道士与野人问题(BFS广度搜索)

摘要: 去掉调试代码: 阅读全文

posted @ 2017-06-10 09:02 ewitt 阅读(1607) 评论(0) 推荐(1)

导航