湖边的白杨树

探索是一种乐趣

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2015年4月12日

摘要: QuestionKey wordsAnwserAassignment operator abstract class It is a class that has one or more pure virtual functions. assignment & initialization ... 阅读全文
posted @ 2015-04-12 20:08 fdyang 阅读(317) 评论(0) 推荐(0)

摘要: Q: What is virtual function?A: Avirtual function or virtual method is a function or method whose behavior can be overridden within an inheriting class... 阅读全文
posted @ 2015-04-12 20:01 fdyang 阅读(174) 评论(0) 推荐(0)

摘要: Q: What is a class?A: A class is an expanded concept of a data structure: instead of holding only data, it can hold both data and functions.Q: What ar... 阅读全文
posted @ 2015-04-12 19:57 fdyang 阅读(250) 评论(0) 推荐(0)

摘要: Q: What is a dangling pointer?A: A dangling pointer arises when you use the address of an object after its lifetime is over. This may occur in situati... 阅读全文
posted @ 2015-04-12 19:46 fdyang 阅读(182) 评论(0) 推荐(0)

摘要: Q: What is the difference betweennew/delete and malloc/free?A: Malloc/free do not know about constructors and destructors. New and deletecreate and de... 阅读全文
posted @ 2015-04-12 19:37 fdyang 阅读(163) 评论(0) 推荐(0)

摘要: Constructors/Destructors.我们都知道,在C++中建立一个类,这个类中肯定会包括构造函数、析构函数、复制构造函数和重载赋值操作;即使在你没有明确定义的情况下,编译器也会给你生成这样的四个函数。例如以下类: class CTest{public: CTest(); ... 阅读全文
posted @ 2015-04-12 18:47 fdyang 阅读(498) 评论(0) 推荐(0)

摘要: 参考:http://www.renfei.org/blog/mac-os-x-terminal-101.htmlOne command line includes 4 parts:Command Name、Options、Arguments、Extras .man : Give the manua... 阅读全文
posted @ 2015-04-12 10:32 fdyang 阅读(264) 评论(0) 推荐(0)