2017年3月29日
摘要: Description 数组和链表是我们熟知的两种线性结构,但是它们不够灵活(不能同时实现直接插入、删除和访问操作),给你若干种操作,你能通过一种灵活的容器,实现它们的功能吗? 操作1:Build a b (产生一个大小为a的线性表,其值全部赋为b,每组样例仅出现一次,在起始行) 操作2:Modif 阅读全文
posted @ 2017-03-29 19:35 TogetherLaugh 阅读(612) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string>#include<vector>#include<algorithm>using namespace std;int main(){ vector <string> names; names.push_back("WXH"); na 阅读全文
posted @ 2017-03-29 18:24 TogetherLaugh 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string>#include<vector>using namespace std;int main(){ vector <string> names; names.push_back("xiao jia yu ~"); names.push_ 阅读全文
posted @ 2017-03-29 18:05 TogetherLaugh 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string>#include<vector>using namespace std;int main(){ vector <string> name; name.push_back("xiao jia yu ~"); name.push_bac 阅读全文
posted @ 2017-03-29 17:59 TogetherLaugh 阅读(103) 评论(0) 推荐(0) 编辑