练习3.14
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> a;
int b;
while (cin >> b)
a.push_back(b);
}
练习3.15
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<string> a;
string b;
while (cin >> b)
a.push_back(b);
}