Chinaunix首页 | 论坛 | 博客
  • 博客访问: 441315
  • 博文数量: 113
  • 博客积分: 446
  • 博客等级: 下士
  • 技术积分: 1229
  • 用 户 组: 普通用户
  • 注册时间: 2012-12-09 16:01
个人简介

Let's go!!!!!

文章分类

全部博文(113)

文章存档

2019年(5)

2018年(4)

2017年(9)

2016年(5)

2015年(39)

2014年(6)

2013年(28)

2012年(17)

发布时间:2015-03-08 22:23:57

#include<stdio.h>#include<malloc.h>#include<stdlib.h>#define True 1#define False 0#define error do{printf("Init set error!");exit(1);}while(0);typedef int ElemType;typedef int Status;typedef struct NODE{   ElemType data;   struct NODE *next;}Node;typedef struct LI.........【阅读全文】

阅读(1025) | 评论(0) | 转发(0)

发布时间:2014-12-14 22:53:42

产生随机数:#include <stdlib.h>#include <string.h>#include <stdio.h>#include <time.h>#include "generate.h"void generate(int *data,int size){   int i = 0;   int j = 0;   int number = 0;   srand(time(NULL));       for(i = 0;i < .........【阅读全文】

阅读(1203) | 评论(0) | 转发(0)

发布时间:2014-12-14 21:16:32

产生随机数:#include <stdlib.h>#include <string.h>#include <stdio.h>#include <time.h>#include "generate.h"void generate(int *data,int size){   int i = 0;   int j = 0;   int number = 0;   srand(time(NULL));       for(i = 0;i < N.........【阅读全文】

阅读(922) | 评论(0) | 转发(0)

发布时间:2014-12-14 12:54:52

排序函数:#include <stdio.h>#include <malloc.h>#include <stdlib.h>#include <string.h>int ctsort(int *data,int size,int max){   int *count = NULL;   int *temp = NULL;   int i = 0;   int j = 0;   if((count = (int *)malloc(max * sizeof(int).........【阅读全文】

阅读(1034) | 评论(0) | 转发(0)

发布时间:2014-12-10 22:33:44

//qksort.h#ifndef __QKSORT_H#define __QKSORT_Hint qksort(int *data,int i,int j);#endif//qksort.c#include <stdio.h>#include <malloc.h>#include <stdlib.h>#include <time.h>static int pvalue(int *data,int i,int j){   int r[3]={0};   int temp = 0;   srand(.........【阅读全文】

阅读(1043) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册