c++
Qbros菜鸟
学无止境
展开
-
stl之vector学习笔记
#include #include #include #include #include <stdlib.h> #include using namespace std; int main() { vector v; v.reserve(10);//设置最小容纳数 if(v.empty())//判断是否为空 { cout<<“the vector is empt...原创 2019-08-06 20:10:30 · 125 阅读 · 0 评论 -
c++面试常见问题之实现一个string类
#include #include #include using namespace std; class MyString { public: MyString(); MyString(const char* pcStr); MyString(const MyString& oOther); ~MyString(); MyString& operator=(const My...原创 2019-08-06 20:16:47 · 208 阅读 · 0 评论