}intmain(){inti;charstr[11] = {0};printf("请输入10个字符:>");for(i=0; i<10; ++i)scanf("%c", &str[i]); BubbleSort(str);printf("string sorted: %s\n", str);return0; } 运行结果: