i know structures cant be compared wholly, like:
it can only be compared likeCode:asd p1, p2 if(p1==p2){cout<<"compared";}
what if i have many many variables in the structure, maybe hundreds, is there a special function to compare them, that i can also use on any two structure objects?(assuming they are from the same "struct{};")Code:persondetails p1, p2; if (p1.name == p2.name && p1.gender == p2.gender && p1.age == p2.age && p1.height == p2.height && p1.weight == p2.weight && p1.occupation == p2.occupation ... many more...... ){cout<<"p1 is p2";}