For example let's say I have a a variable, int found = 0;
What does it,found != -1, mean when I put it into this context. I'm using this to locate the location of a string in another string. Once I found the location it saves the index at where it was found to the int variable.
while (found!= -1) { .. .. }
Aucun commentaire:
Enregistrer un commentaire