Home > database >  notes
notes

Time:10-03

Add, delete, change, check the case, find a number in the array, if the output position, not output didn't find the for (I=0; i<10; I++) {if (a==x) [I] {printf (" % d ", I); break; }} the if (I==10) printf (" not found ") * * * * * * * * * * * * * * * * * * * * switch variables, flag variable int flag=0; for(i=0; i<10; I++) {if (a==x) [I] {printf (" % d ", I); flag=1; break; }} the if (flag==0) printf (" not found ") * * * * * * * * * * * * * * * * * * * * for (I=0; i<10; I++) {if (a==x [I]) {break; }} the if (I==10) printf (" not found ") elseprintf (" % d ", I);

CodePudding user response:

Notes class knowledge, it is suggested that write personal blog, thank you.