头文件:#include<algorithm> 使用格式:同sort一样,例如:next_permutation(a + 1, a + n + 1); 说明:此函数每运行一次,把数组生成下一个字典排数列