c++里面的next_permutation


使用前1.#include

  2.using namespace std;

  3.不能直接用数组进行while(next_permuatation(Arr[0],Arr[3]));而要用vector容器

  4.在使用vector容器的时候也得进行while(next_permutation(v.begin(),v.end()));

相关