prevprm0.cpp

prevprm0.cpp

#include ‹stl.h›

#include ‹iostream.h›

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

int main() {

 prev_permutation(v1, v1 + 3);

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

 cout ‹‹ endl;

 return 0;

}