blob: 356eee569f436ca0fc007c6c8888aca0676df207 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "College.hh"
#include "High_School.hh"
#include "University.hh"
#include <iostream>
auto main() -> int {
University university;
College college("College of Cool", 1, 3.5);
High_School high_school("Cool High School", 2, 3.7);
auto same_college = [](University &college, University &university) {
if (college == university) {
std::cout << "Same college\n";
} else {
std::cout << "Different college\n";
}
};
same_college(college, university);
return 0;
}
|