j=-1; for(i=0;i<10;i++) { if (strcmp(temp[0],varptr[i])==0) {j=i;break;} }//strcmp is not safe, try use strncmp.
確定! 回上一頁