#include <iostream>
#include <vector>
#include <string>
using std::cout;
using std::endl;
using std::vector;
using std::string;
int main()
{
vector<string> *vp = new vector<string>(3);
vector<string> &vr = *vp;
vr[0] = "c++";
vr[1] = "php";
vr[2] = "java";
for (int i = 0; i < vr.size(); i++)
cout << vr[i] << endl;
delete &vr;
return 0;
}
/*
run:
c++
php
java
*/