© 1999-2048 dssz.net 粤ICP备11031372号
[C/C++] 传递闭包Warshall算法
说明: 实验名称:Warshall算法计算关系的传递闭包 源代码: #include using namespace std; int add(int a,int b) {if(a==0&&b==0) return 0; else if(a==0&&b==1||a==1&&b==0||a==1&&b==1) return 1; else cout<<"输入的矩阵有误"<<endl; } int main() {int i,j,k,n; int a[20][20]; //输入矩阵<guxiaotaba> 在 上传 | 大小:1024