C++編寫數的全排列

數字123的全排列,應用深度優先搜索原理ios #include<iostream> using namespace std; int a[4], book[4]; void permulation(int step) { if (step == 4) { for (int i = 1; i <= 3; i++) { cout << a[i] << " "; } cout <<
相關文章
相關標籤/搜索