加载中…
  
博文
标签:

it

分类: C
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void inOrder(char array[], int n );
int main(int argc, char *argv[])
{
   
    char temp[100];
    printf('请输入字符串:\n');
    gets(temp);
    char a[strlen(temp)+1];
    strcpy(a,temp);
    inOrder(a,strlen(temp));
    int k;
    for(k=0; k<strlen(temp); k++)
    {
       printf('%c',a[k]);    
    }
    system('pause');
    return 0;
}
//选择法排序函数
void inOrder(char array[], int n)
{
    int i, j;
    char  temp;
    for(i=0; i<n-1; i++)
 &
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有