1. map+vector+structusing namespace std;//单笔记录typedef struct { int idx; //索引 string str; //记录}TStepRec;/C;//记录“键值+容器<多笔记录...
int length; int width; //对于向量元素是...
1. 属性size是容器里真实个数;2. 属性capacity是realloc预分配的值;
const char c = 'a';//1.使用 string 的构造函数string s(1,c);//2.声明string 后将char pu
深拷贝:内存拷贝,每块内存有不同的指针浅拷贝:指针的拷贝,拷贝之后指向同
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号