2011年5月11日

摘要: int CreatMatrix(int *matrix){ int i,j; int buf; for(i=0;i<9;i++) { getElem: srand((unsigned)time(NULL)); buf=rand()%9; for(j=0;j<i;j++) { if(matrix[j]==buf) goto getElem; } matrix[i]=buf; } return OK;} 阅读全文
posted @ 2011-05-11 15:50 android开发实例 阅读(324) 评论(0) 推荐(0) 编辑

导航