Student operator+(const Student &student, char grade) {
Student modified = student;
modified += grade; // calls += operator
return modified;
}
Student operator+(char grade, const Student &student) {
return student + grade; // calls operator+(const
// Student&, char)
}
July 26, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment