Код: Выделить всё
#include
//#include
#include
using namespace std;
struct tfecha {
int dia;
int mes;
int anio;
};
int main()
{
tfecha f1,f2;
coutf1.mes;
cin>>f1.anio;
coutf2.mes;
cin>>f2.anio;
if(strcmp(f1==f2) {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/68036262/how-can-i-compare-two-struct-instances[/url]