Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <locale.h>
- #include <conio.h>
- int main()
- {
- int stroka = 0;
- char ch_1[20], ch_2[20];
- FILE *file_1;
- FILE *file_2;
- setlocale(LC_ALL, "russian");
- if((file_1 = fopen("1.txt","r")) == NULL)
- { printf("Ошибка ебать"); return 1; }
- if((file_2 = fopen("2.txt","r")) == NULL)
- { printf("Нету файла блять"); return 1; }
- int x;
- int y;
- while(!feof(file_1) && !feof(file_2))
- {
- for (x=0; x < 200; x++)
- {
- fgets(ch_1[x], 20, file_1);
- for (y=0; y < 5; y++)
- {
- fgets(ch_2[y], 20, file_2);
- if (ch_1[x]==ch_2[y])
- printf("\n Строка №%d совпадает \n",stroka);
- else
- printf(".");
- stroka++;
- }
- }
- }
- getch();
- fclose (file_1);
- fclose (file_2);
- printf("\nЗакончил ебать\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement