离散数学关系的性质用矩阵实现,需要的自取
#include; using namespace std; int main(){ int n; while(true){ cout<<"请输入您定义的矩阵边长,输入负数直接退出:"; cin>>n; if(n>0){ int a[n][n]; for(int i=0;i >a[i][j]; } } cout<<"您定义的关系矩阵为:"< 0){ cout<<"该二元关系既不具有对称性也不具有反对称性。"<

离散数学关系的性质用矩阵实现,需要的自取
#include; using namespace std; int main(){ int n; while(true){ cout<<"请输入您定义的矩阵边长,输入负数直接退出:"; cin>>n; if(n>0){ int a[n][n]; for(int i=0;i >a[i][j]; } } cout<<"您定义的关系矩阵为:"< 0){ cout<<"该二元关系既不具有对称性也不具有反对称性。"<