#define _CRT_SECURE_NO_WARNINGS #include "stdafx.h" #include "conio.h" #include <iostream> #include <fstream> #include <stdio.h> #include <string> using namespace std; int main() { FILE *f; char obr[15]; char fam[15]; char name[15]; char tel[10]; char p[20]; int n = 0; puts("File name:"); scanf("%s", &p); f = fopen(p, "rt"); puts("Enter surname:"); scanf("%s", &obr); while (!feof(f)) { fscanf(f, "%s %s %s", &fam, &name, &tel); if (fam == obr) { printf("%s %s %s", fam, name, tel); n++; } } if (n) { printf("Number of records: %i\n", n); } else { printf("No data. %i", n); } fclose(f); system("pause"); } Help me find an error in the code, during the execution of the program the counter is n = 0, although I have such an entry in my notebook "Ivanov Vasya 900-90-90". The essence of the program: if there is a surname in Notepad that matches the one entered by the user, then we display the data associated with this surname and count the number of records found, that is, n.