diff options
author | Oskar <[email protected]> | 2024-09-17 16:36:14 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-09-17 16:36:14 +0200 |
commit | 46dd78806ebac69c88cb07cecb3afae1835b783a (patch) | |
tree | 69f5c404612d884d4d6ff12304eb650985a71263 /7p5.cpp | |
parent | d8d8f1c987f118843d44ea27ac516f8fe866ded4 (diff) |
more
Diffstat (limited to '7p5.cpp')
-rw-r--r-- | 7p5.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +#include <iostream> +#include "person.hpp" + +/* + * + * 7.5 + * + * Done in person.hpp + * We aren't changing the object or anything so const is okay + */ + +int main () { + + Person person1; + person1.Name = "John Doe"; + person1.Address = "Unknown Street 20"; + std::cout << person1.GetName() << std::endl; + std::cout << person1.GetAddress() << std::endl; + return 0; +} |