上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页
摘要: 堆排序,要从初始状态调整成大顶堆,然后每次取出顶(此时顶是最大的),用最后一个元素代替顶,再接着排序。#define LOCAL#include#include#includeusing namespace std;typedef int ElemType;const int maxSize=10;... 阅读全文
posted @ 2014-10-10 14:51 剑风云 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 产生n个随机数,n由键盘输入。#include#include#include#includeusing namespace std;#define random(x) (rand()%x)// printf("%d/n",random(100));//rand()会返回一随机数值, 范围在0... 阅读全文
posted @ 2014-10-10 14:35 剑风云 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #define LOCAL#include#include#includeusing namespace std;typedef int ElemType;const int maxSize=10;//传入函数的一维数组经过函数之后数组元素发生变化 int REV(int *a,int x,int ... 阅读全文
posted @ 2014-10-08 16:07 剑风云 阅读(285) 评论(0) 推荐(0) 编辑
摘要: #define LOCAL#include#include#includeusing namespace std;typedef int ElemType;typedef struct Node{ ElemType data; struct Node *next;}Node,*LinkL... 阅读全文
posted @ 2014-10-08 15:45 剑风云 阅读(350) 评论(0) 推荐(0) 编辑
摘要: #define LOCAL#include#includeusing namespace std;typedef int ElemType;void fun1(ElemType *x){ cout>a; cout<<(*&a)<<endl; fun1(&a); b=&a; ... 阅读全文
posted @ 2014-10-08 13:46 剑风云 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #define LOCAL#include #include #include #define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define ElemType int#define MAXSIZE 100 /*此处的... 阅读全文
posted @ 2014-09-30 16:21 剑风云 阅读(355) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;queue Q;int temp;void tringle(const int n){ Q.push(1); for(int i=2;i<=n;i++) { Q.p... 阅读全文
posted @ 2014-08-01 15:38 剑风云 阅读(1438) 评论(0) 推荐(0) 编辑
摘要: 1. 3306端口是不是没有打开? 使用nestat命令查看3306端口状态: ~# netstat -an | grep 3306 tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 从结果可以看出3306端口只是在IP 127.0.0.1上监听,所以拒绝了其他IP的访 阅读全文
posted @ 2014-07-12 16:47 剑风云 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: OSChina网址http://www.oschina.net/translate/15-data-recovery-tools-for-windows?from=20140706 阅读全文
posted @ 2014-07-07 19:34 剑风云 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 关于android 虚拟机没有sd卡问题 阅读全文
posted @ 2014-07-05 20:22 剑风云 阅读(247) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页