diff options
sem 7
1 files changed, 16 insertions, 0 deletions
| -rw-r--r-- | Sem. 07/Person/Source.cpp | 16 |
diff --git a/Sem. 07/Person/Source.cpp b/Sem. 07/Person/Source.cpp new file mode 100644 index 0000000..478d07a --- /dev/null +++ b/Sem. 07/Person/Source.cpp @@ -0,0 +1,16 @@ +#include <iostream> +#include "Person.h" +using namespace std; + +int main() +{ + Person p("Ivan", 13); + Person p2("Petur", 12); + + p = p2; + + p2.setName("Aleks"); + p.print(); + p2.print(); + +} |
