// 0914.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <vector> #include <iostream> #include <string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { vector<string> svec; string strInput; while (cin >> strInput) svec.push_back(strInput); cout << "the size is: " << svec.size() << endl; for (vector<string>::iterator iter = svec.begin();iter != svec.end();iter++) cout << *iter << endl; return 0; }