Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 11 / example / main.cpp
diff options
context:
space:
mode:
1 files changed, 17 insertions, 0 deletions
-rw-r--r--Sem. 11/example/main.cpp17
diff --git a/Sem. 11/example/main.cpp b/Sem. 11/example/main.cpp
new file mode 100644
index 0000000..a7a00f6
--- /dev/null
+++ b/Sem. 11/example/main.cpp
@@ -0,0 +1,17 @@
+#include<iostream>
+#include<iostream>
+#include "Person.h"
+using namespace std;
+
+Person createPerson(const char* name, int age)
+{
+ Person p(name, age);
+
+ return p;
+}
+
+int main()
+{
+ Person p2("Petur",18);
+ p2 = createPerson("Ivan", 23);
+} \ No newline at end of file