#include <iostream>
#include <vector>
using namespace std;
class Student
{
public:
Student(int age):m_age(age)
{
}
void Set(int age)
{
m_age = age;
}
int Get()
{
return m_age ;
}
private:
int m_age;
};
int main()
{
vector<Student> sv;
Student st(20);
Student st1(23);
sv.push_back(st);
sv.push_back(st1);
vector<Student>::iterator it = sv.begin();
for(; it != sv.end(); it++)
{
cout <<it->Get()<< endl;
}
return 0;
}