}
return sum;
}
string operation(int a1,int a2,string s1,int a[V][V]){
string s2;
int textm[V],texty[V]={0};
for(int i=0;i
Y[m][n]=k[m+row][n+column];
}
pp = 0;
}
int
if((i+j)%2==0) pp=1;
else pp=-1;
A_i_j=pp*det(V-1,Y);
kb[j][i]=A_i_j;
}
}
cout<<"其伴随矩阵为: "<
cout<
>s1;
s2=operation(a2,a1,s1,k);
cout<<"密文为: "<>s3;
s4=operation(a1,a2,s3,kn);
cout<<"明文为: "<由图可知,实验结果正确。