64,282
社区成员
发帖
与我相关
我的任务
分享
#include<iostream>
#include<list>
#include<vector>
#include<string>
#include"utilities.h"
using namespace std;
int main(void)
{
char *sa[] = {"Mary", "Tom", "Bob", "Alice"};
list<char*> slst(sa, sa + 4);
vector<string> svec;
string str;
svec.assign(slst.begin(), slst.end());
printItems(svec.begin(), svec.end());//输出容器内容
return 0;
}