diff options
| author | Fuwn <[email protected]> | 2024-05-16 17:35:22 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-05-16 17:35:22 -0700 |
| commit | 76a74448764e070821735e0d72d675e6c989ff8d (patch) | |
| tree | 4ffc21eca6b2fc602117faaa269b768237b820ac /School_Driver.cpp | |
| parent | f (diff) | |
| download | cst_136_assignment_07-76a74448764e070821735e0d72d675e6c989ff8d.tar.xz cst_136_assignment_07-76a74448764e070821735e0d72d675e6c989ff8d.zip | |
f
Diffstat (limited to 'School_Driver.cpp')
| -rw-r--r-- | School_Driver.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/School_Driver.cpp b/School_Driver.cpp index 93532ca..356eee5 100644 --- a/School_Driver.cpp +++ b/School_Driver.cpp @@ -1,9 +1,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; } |