摘要: voidsetzeros(int*array,intm,intn){#definearray(i,j)(*(array+(i)*n+(j)))intflag_row=-1;intflag_rank=-1;inti,j;for(i=0;i<m;i++)for(j=0;j<n&&flag_row==-1;j++)if(array(i,j)==0){flag_row=i;flag_rank=j;}if(flag_row==-1)return;for(i=0;i<m;i++)if(array(i,flag_rank)==0)array(i,flag_rank)=1;e 阅读全文
posted @ 2011-09-03 23:11 tungli 阅读(237) 评论(0) 推荐(0) 编辑