摘要: 写的非常简单 看看思路就可以 //6 1 2 7 9 3 4 5 10 8#include<stdio.h>int a[100],n;void quick(int l,int r){ int i,j,temp,t; if(l>r) { return; } temp=a[l]; i=l; j=r; w 阅读全文
posted @ 2017-01-10 17:46 mykonons 阅读(145) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>typedef struct node{ char name[10]; int gra;}stu; int main(){ stu stu1[5],t; int i,j,n,temp; printf("输入需要排序的学生个数:"); scanf("%d",&n); 阅读全文
posted @ 2017-01-10 12:33 mykonons 阅读(228) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int i,j,n,t; int tong[11]; printf(" 请输入数字个数 :"); scanf("%d",&n); for(i=1;i<=n;i++) { tong[i]=0; } for(i=1;i<=n;i++) { sca 阅读全文
posted @ 2017-01-10 10:59 mykonons 阅读(158) 评论(0) 推荐(0) 编辑