nextprm0.cpp

We use cookies. Read the Privacy and Cookie Policy

nextprm0.cpp

#include ‹stl.h›

#include ‹iostream.h›

int v1[3] = {0, 1, 2};

int main() {

 next_permutation(v1, v1 + 3);

 for (int i = 0; i ‹ 3; i++) cout ‹‹ v1[i] ‹‹ ;

 cout ‹‹ endl;

 return 0;

}