CreatMat(ta,a[4][4]);CreatMat(tb,b[4][4]);这两句修改成CreatMat(ta,a);CreatMat(tb,b);
CreatMat(ta,a);CreatMat(tb,b);