Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 07 / Person / Source.cpp
diff options
context:
space:
mode:
1 files changed, 16 insertions, 0 deletions
-rw-r--r--Sem. 07/Person/Source.cpp16
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();
+
+}