How to read correctly certain strings from file in c?
问题 I am trying to write a program in c that compare strings. The strings are given in pairs and in the top of the file there is the number of the pairs. The file has a form like the following: 2 a: 01010100000101011111 01001010100000001111 00000000000011110000 b: 00000111110000010001 10101010100111110001 a: 00000011111111111100 00111111111111000 b: 00000001111001010101 My problem is to read the strings properly in order to execute comparisons etc Here is my code: #include <stdio.h> #include