Advertisement
slubbychubb

Untitled

Apr 30th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. while(fscanf(fp,"%[^\n]\n",line)!=EOF)
  2. {
  3. fscanf(fd,"%[^\n]\n",lineB);
  4. fprintf(fp, "%s\n",line);
  5. fprintf(fd, "%s\n",lineB);
  6. if(strcmp(line,lineB)==0)
  7. {
  8. count++;
  9. }
  10. else
  11. {
  12. d[index]=count;
  13. index++;
  14. count++;
  15. printf("%i",count);
  16. printf("%s", "c");
  17. printf("%i\n",count);
  18. fprintf(fp, "%s\n",line);
  19. printf("%s\n","-----------------");
  20. fprintf(fd, "%s\n",lineB);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement