天天看點

C++Primer3.3.2練習題。

#include <iostream>
#include <vector>
using namespace std;

int main()
{
	vector<int> vc1;
	for (int i = 0; i<3; i++)
	{
		vc1.push_back(i);
	}

	vector<string> vc2 = { "c", "s", "d", "n" };
	vector<string> vc3;
	for (int j = 0; j < vc2.size();j++)
	{
		vc3.push_back(vc2.at(j));
	}
	getchar();
	return 0;
}
           

為達目的,不則手段。