摘要: 考察一个面向大众的系统开发的是否成功,这个系统在有限时间内能接受的访问数量是一个很重要的标准。在传统的方案中,增加访问数量的方法就是增加服务器。打个比方,如果一台服务器能够支持100个人同时访问,而同时访问这个系统的人有10000个,那么,就提供100台服务器。但是传统的方法中,管理员工程和用户工程 阅读全文
posted @ 2018-05-07 21:51 自由的背包 阅读(109) 评论(0) 推荐(0) 编辑
摘要: //先序遍历递归 int PreOrderTraverse(BiTree T,int (* Visit)(char e)){ if(T){ if(Visit(T->data)){ if(PreOrderTraverse(T->lchild,Visit)) if(PreOrderTraverse(T->rchild,Visit)) return 1; } re... 阅读全文
posted @ 2017-12-10 21:29 自由的背包 阅读(475) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #define MAXSIZE 225 #define N 9 typedef struct{ int i,j; int e; }Triple; typedef struct{ Triple data[MAXSIZE+1]; int mu,nu,tu; }TSMatrix; int CreatSM... 阅读全文
posted @ 2017-12-04 18:58 自由的背包 阅读(4125) 评论(0) 推荐(1) 编辑
摘要: #include #include #include #include typedef struct{ char *base; char *top; int stacksize; }SqStack; int InitStack(SqStack &S){ S.base = (char *)malloc(100*sizeof(char)); if(!S.base){ ... 阅读全文
posted @ 2017-11-26 21:24 自由的背包 阅读(717) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include typedef struct{ char *base; char *top; int stacksize; }SqStack; int InitStack(SqStack &S){ S.base = (char *)malloc(100*sizeof(char)); ... 阅读全文
posted @ 2017-11-20 22:06 自由的背包 阅读(444) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #define MAXSIZE 100 typedef int Status; typedef char SElemType; typedef struct { SElemType *base; ... 阅读全文
posted @ 2017-11-12 19:47 自由的背包 阅读(337) 评论(0) 推荐(0) 编辑
摘要: #include #include #include typedef int ElemType; typedef struct Node{ ElemType data; struct Node *next; }Node,*LinkedList; LinkedList Creatlist(LinkedList head){ int i,d; LinkedList p,q; p =... 阅读全文
posted @ 2017-11-05 20:01 自由的背包 阅读(285) 评论(0) 推荐(1) 编辑
摘要: 程序检查错误的方法:1.>将此行程序注释掉, 重新运行,看是否还有错误; 2.>将此行代码重新写一遍, 重新运行,看是否还有错误; 阅读全文
posted @ 2017-03-23 10:32 自由的背包 阅读(329) 评论(0) 推荐(0) 编辑
摘要: c语言基础中比较经典的例子,刚做的时候,很多问题没办法独立解决。比如当遇到共轭复根时,该如何输出,解决办法就是把负根的实部与虚部分开写,具体参见上例。还有一个常识,当用到数学函数时,头文件要有(#include<math.h>)。 阅读全文
posted @ 2017-03-23 10:13 自由的背包 阅读(632) 评论(1) 推荐(0) 编辑
摘要: 这道题,对于我这个初学者来说,有点复杂,写了好长时间,还上网搜了一下,才写出来。其实这道题主要靠数学运算,弄清楚数据之间的关系,写程序不算难。 阅读全文
posted @ 2017-03-18 17:12 自由的背包 阅读(691) 评论(1) 推荐(0) 编辑