This is an urgent help, appreciate if u can take the time to help.
My problem is, why doesn't the big loop work, but the small one does. I want to make the big loop works as well.
Thank you.
char line2[100000] = "";
while( bac != NULL ) {
while(fgets(line2, 102, dictionary) != NULL){
if(strcmp(line2, bac) == 0) {
checker++;
printf("%s", line2);
}
}
printf("%s", bac);
bac = strtok( NULL, delims );
}
C programming question?
char line2[100000] = "";
while( bac != NULL ) {
while(fgets(line2, 102, dictionary) != NULL){
if(strcmp(line2, bac) == 0) {
checker++;
printf("%s", line2);
}
-----%26gt;}
printf("%s", bac);
bac = strtok( NULL, delims );
}
this should not be there or should be part of a larger loop...
Reply:it's staring you in the face.. c'mon thats straight forward.
I'm guessing its a homework question.. I'm not gonna give you a direct answer and either should others..
i will give you a clue.. the question gives you a clue..
what happens in a loop.. think about it!!!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment