Chinaunix首页 | 论坛 | 博客
  • 博客访问: 443055
  • 博文数量: 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)

发布时间: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 < .........【阅读全文】

阅读(1176) | 评论(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.........【阅读全文】

阅读(898) | 评论(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).........【阅读全文】

阅读(1012) | 评论(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(.........【阅读全文】

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

发布时间:2014-12-07 00:25:35

 main.c函数#include <stdio.h>#include "sort.h" int main(){   int   array[NUM] = {9,0,7,1,5,4};   int   i = 0;    printf("Before sort:\n");   for(i=0;.........【阅读全文】

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

登录 注册