0

C++要点笔记(28)——类实例拷贝(copy class)

Posted by nanxiao on 一月 19, 2016 in C++要点笔记 |

(1)赋值运算(=): 先看个例子: #include <iostream> using name […]

标签:

0

C++要点笔记(27)——析构函数(destructor)

Posted by nanxiao on 一月 18, 2016 in C++要点笔记 |

与构造函数(constructor)对应的是析构函数(destructor)。析构函数的命名是类名前面加上~, […]

标签:

0

C++要点笔记(26)——构造函数(constructor)

Posted by nanxiao on 一月 14, 2016 in C++要点笔记 |

构造函数(constructor)和类(class)名字相同,但要注意构造函数没有返回值(void也不行): […]

标签:

0

C++要点笔记(25)——默认模板类型参数

Posted by nanxiao on 一月 13, 2016 in C++要点笔记 |

C++支持“默认模板类型参数”,即不为模板提供类型参数时,则使用这个默认的参数。举例如下: template […]

标签:

0

C++要点笔记(24)——类的静态成员

Posted by nanxiao on 一月 12, 2016 in C++要点笔记 |

C++类中的静态数据成员(static data member)只是声明(declaration),不是定义( […]

标签:

0

Mesos笔记 (9)—— Containerizer类代码解析

Posted by nanxiao on 一月 11, 2016 in Mesos笔记 |

Containerizer类(定义在src/slave/containerizer/containerizer […]

标签:,

0

C++要点笔记(23)——static_cast,reinterpret_cast,const_cast和dynamic_cast

Posted by nanxiao on 一月 8, 2016 in C++要点笔记 |

Quora上一篇帖子对这几种cast做了很好的解释。总结一下:

标签:

0

C++要点笔记(22)——多态(Polymorphism)

Posted by nanxiao on 一月 8, 2016 in C++要点笔记 |

下面是对Polymorphism的解释: Polymorphism means “many for […]

标签:

0

C++要点笔记(21)——引用(reference)

Posted by nanxiao on 一月 6, 2016 in C++要点笔记 |

Reference可以看做是一个变量的别名: int x; int& foo = x; Referen […]

标签:

2

C++要点笔记(20)——内联方法(inline method)

Posted by nanxiao on 一月 5, 2016 in C++要点笔记 |

下文摘自C++ Primer Plus:

标签:

Copyright © 2013-2017 我的站点 All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.