正在加载图片...
Status DSMatrixLocate(DSMatrix A, int i, int j, int &e) for(s=A cpot[; S<A cpot[i+1]&&A data[s]j=j; s++) ∥注意查找范围 (< A cpot[+1]&& A data[s]j==j找到了元素A[U e=A data[s]; return oK: return error:Status DSMatrix_Locate(DSMatrix A,int i,int j,int &e) { for(s=A.cpot[i];s<A.cpot[i+1]&&A.data[s].j!=j;s++); //注意查找范围 if(s<A.cpot[i+1]&&A.data[s].j==j) //找到了元素A[i][j] { e=A.data[s]; return OK; } return ERROR; }
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有