Page 1 of 1
In this problem, you will overload the equal to operator (operator=-) for Student typed objects. We consider two student
Posted: Mon Jul 11, 2022 9:56 am
by answerhappygod

- In This Problem You Will Overload The Equal To Operator Operator For Student Typed Objects We Consider Two Student 1 (21.92 KiB) Viewed 55 times
In this problem, you will overload the equal to operator (operator=-) for Student typed objects. We consider two student objects equivalent if each of their data members store identical values. 1 #include <iostream> 2 3 #include "student.hpp" 4 #include "utilities.hpp" 5 6 7 8 9 10 int main() { } overloading-equal-to-operator driver.cc student.hpp student.cc utilities.hpp utilities.cc
1 #ifndef STUDENT_HPP 2 #define STUDENT_HPP 3 4 #include <string> 5 6 7 8 struct Student { std::string first_name; std::string last_name; unsigned int uin; 9 10 }; 11 12 #endif 13 14 overloading-equal-to-operator driver.cc student.hpp student.cc utilities.hpp utilities.cc