1.小写转大写-32 2.判断字符串里是否有数字 #include<cctype> if(isdigit()) 3.n个东西重新组合使n的位置与原来不同 错排公式:f(n)=(n-1)*[f(n-1)+f(n-2)] 4.set 一般通过<来排序 可以通过重载<来自定义排序