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