- 博客(5)
- 收藏
- 关注
原创 c++ member function pointer
#include <iostream>#include <string>#include <sstream>#include <vector>#include<functional>using namespace std;class person{public: explicit person(const int& a, const string& b) :age(a), name(b) { cout &l
2021-01-26 21:22:23
203
原创 lambda
#include <iostream>#include <string>#include <sstream>#include <vector>#include<functional>using namespace std;class person{public: explicit person(const int& a,const string& b) :age(a), name(b) {}; void p
2021-01-22 11:37:48
127
原创 compile/linking/header file
1.The header files don’t get compiled2.The content in the header files gets copied and pasted into where it gets included.3.The linker will link all the .obj files at linking stage.
2021-01-19 22:28:53
149
原创 copy constructor
c++ Time to invoke copy constructor1.passing by value to a function.2.return by value from a function.3.pushing object into the container.
2021-01-19 15:59:09
142
原创 move semantic
comparsion between move constructor/assignment operator and copy constructor//assignment operatorc++测试#include <iostream>#include <string>#include <sstream>#include <vector>using namespace std;class book {public: book(co
2021-01-18 22:31:52
187
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅