相关代码 |
|
////建立一维,二维数组的类测试intarraym.cpp #include #include #include #include "intarray.cpp" void main() {cout int i,j; IntArray1 a(10); cout srand(120); for(i=1;i {a[i]=rand()%10; cout cout a.ReArray(12); cout for(i=1;i {a[i]=rand()%10; cout cout IntArray2 b(3,4); for(i=1;i for(j=1;j b[i][j]=rand()%12; cout for(i=1;i {for(j=1;j cout cout cout }
相关资源 |
|