Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 11 / example / main.cpp
blob: a7a00f6335b5d8766f3911358f3d2f790fd68b72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}