- 博客(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
156
原创 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
105
原创 compile/linking/header file
1.The header files don’t get compiled 2.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
125
原创 copy constructor
c++ Time to invoke copy constructor 1.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
123
原创 move semantic
comparsion between move constructor/assignment operator and copy constructor//assignment operator c++测试 #include <iostream> #include <string> #include <sstream> #include <vector> using namespace std; class book { public: book(co
2021-01-18 22:31:52
162
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人