Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 11 / example / main.cpp
blob: 80fef69173c98f59c46d513b1d533ba86f9790b0 (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 std::move(p);
}

int main()
{
	Person p2("Petur",18);
	p2 = createPerson("Ivan", 23);
}