摘要:
#include "iostream"using namespace std;void swap(char a[],int i,int j){ char temp; temp=a[i]; a[i]=a[j]; a[j]=temp;}void permutation(char ... 阅读全文
摘要:
思想:先顺时针打印一圈,再打印剩下的矩阵,直到最后的矩阵的行或列为0为止;#include "iostream"using namespace std;void main(){ int a[3][4]={{1,2,3,4},{8,7,6,5},{1,2,3,4}}; int m=3,n=... 阅读全文