#i n c l u de#d e f i ne MA X SI Z E 1 2500#d ef in e OK 1#def i ne ERROR 0#defi n e O V E RFLOW —2t ypedef int Stat u s;typed e f i n t Ele m Ty p e;t yp e def stru c t{ int i,j; i nt e;}Triple;type d ef s tr uct{ Tr i p l e da t a[MAX SI ZE+1]; int m u,n u,tu;}T S Matrix;Sta tus Cr e at eS Mat rix(T SMatrix &M){i nt w,m,n; while(1) { printf("请输入行:"); scanf(”%d”,&M、mu); i f(M、mu>0) {ﻩ break; } i f(M、m u〈=0) { printf("行不能为 0\n");ﻩ cont inu e; } } while(1) { p rintf("请输入列:”); s c a nf("%d",&M、nu); i f(M、nu>0) {ﻩ b reak; } if(M、n u<=0) {ﻩ p rintf("列不能为 0\n");ﻩ contin u e; } } p rint f(”请输入非零元素:"); s canf(”%d",&M、t u); fo r(w=1;w