题解 1749: 字符排序

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1749: 字符排序(C++题解)

##上代码!里面详细教程```cpp/*思路:1.定义整数n和字符串s2.输入n3.for循环输入s4.快排sort(格式):sort(s.begin(),s.end());5.输出s*/#includeusingnamespacestd;intmain(){intn;strings;cin>>n;f

字符排序(冒泡排序)

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> // 定义一个函数place,用于对输入的字符串按ASCII码从小到大进行冒泡排序 ……