#include<iostream>
#include<vector>
#include<string>
#include<iterator>
using namespace std;
template<typename T,typename D>
class Member
{
public:
Member(T t,D d):name(t),sal(d){}
void print()
{
cout<<name<<" "<<sal<<endl;
}
private:
T name;
D sal;
};
int main()
{
typedef Member<string,double>M;
vector<M> v;
v.push_back(M("Linada",75000));
v.push_back(M("Robert",6000));
vector<M>::iterator It = v.begin();
cout<<"Entire vector:"<<endl;
while(It!=v.end())
(It++)->print();
cout<<endl;
cout<<"Return from front()"<<endl;
v.front().print();
getchar();
return 0;
}