I have problem about doing something in my program. I have a char[28] array keeping names of people. I have another char[28] array that also keeps names. I ask user to enter
The problem is in if(sName==Student.name) which basically compares the address of the arrays, not their values.
Replace it with (strcmp(sName, Student.name) == 0)
But in general, you are working on C++, not C, I would advise working with std::string which will make this much simpler.