#include<iostream>
using namespace std;
class Array{
int a[4][4];
public:
Array(int a1[][4],int n){
for(int i=0;i<4;i++){
for(int j=0;j<4;j++)
a[i][j]=a1[i][j];}}
void xuanzhuan(){
int b[4][4];
for(int i=0;i<4;i++){
for(int j=0;j<4;j++)
b[i][j]=a[i][j];}
for(int i=0;i<4;i++){
for(int j=0;j<4;j++)
a[i][j]=b[3-j][i];}}
void show(){
for(int i=0;i<4;i++){
for(int j=0;j<4;j++)
cout<<a[i][j];
}}}
int main(){
int b[4][4]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};
Array t(b,4);
t.xuanzhuan();
t.show();
system("pause");
return 0;}
using namespace std;
class Array{
int a[4][4];
public:
Array(int a1[][4],int n){
for(int i=0;i<4;i++){
for(int j=0;j<4;j++)
a[i][j]=a1[i][j];}}
void xuanzhuan(){
int b[4][4];
for(int i=0;i<4;i++){
for(int j=0;j<4;j++)
b[i][j]=a[i][j];}
for(int i=0;i<4;i++){
for(int j=0;j<4;j++)
a[i][j]=b[3-j][i];}}
void show(){
for(int i=0;i<4;i++){
for(int j=0;j<4;j++)
cout<<a[i][j];
}}}
int main(){
int b[4][4]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};
Array t(b,4);
t.xuanzhuan();
t.show();
system("pause");
return 0;}
