Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Mathimatics-Numerical algorithms Data structs
  • Category : Data structs
  • Tags :
  • Update : 2012-11-26
  • Size : 16kb
  • Downloaded :0次
  • Author :李***
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
#include <stdio.h> #define SIZE 100//数组最大长度 #define SWAP(x, y, t) (t = x, x = y, y = t)//交换两个数 void sort(int**p, int n){//排序函数 int i, j int min int temp for(i = 0 i < n- 1 i++){ min = i for(j = i+ 1 j < n j++){ if(*(*p+ min) >*(*p+ j) ){ min = j } } SWAP(*(*p+ i),*(*p+ min), temp) } } void main(void){ int n int*q int**p int arr[SIZE] q = arr p = &q //将指向数组的指针的地址赋给指针的指针 printf("please enter the size of the array: ") //输入要排序的数的个数 scanf(" d", &n) printf("please enter the element of the array: \n") //输入要排序的数 for(int i = 0 i < n i++){ scanf(" d", &arr[i]) } sort(p, n) for(i = 0 i < n i++) { printf(" d ", arr[i]) //输出排序后的数组 } printf("\n") return }
Packet file list
(Preview for download)
paixu.doc
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is the largest source code store in internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.