#include <iostream>
#include <string>
#include <vector>
using namespace std; class Person
{
private:
string m_strName;
public:
string GetName() { return m_strName; }
void SetName(string s) { m_strName = s; }
void print_person() const {
cout << "Name: " << m_strName << endl;
cout << endl;
}
Person(string strName = "")
: m_strName(strName)
{
}
};
vector<Person> create_person_vector()
{
vector<Person> vp;
Person p;
for (int i = 2; i < 10; i++)
{
p.SetName("Colton");
vp.push_back(p);
}
return vp;
}
int main()
{
vector<Person> p = create_person_vector();
for (vector<Person>::const_iterator it = p.begin(); it != p.end(); it++)
{
(*it).print_person();
}
}