随笔分类 -  C ++ Basics

摘要:http://msdn.microsoft.com/zh-cn/library/9x1t4dy1%28v=vs.100%29http://msdn.microsoft.com/zh-cn/library/0x0cx6b1%28v=vs.100%29Begins the definition of your message map.BEGIN_MESSAGE_MAP(theClass, baseClass )theClassSpecifies the name of the class whose message map this is.baseClassSpecifies the name o 阅读全文
posted @ 2013-11-23 06:43 centerall 阅读(548) 评论(0) 推荐(0)
摘要:The keyword using is used to introduce a name from a namespace into the current declarative region. For example:// using#include using namespace std;namespace first{ int x = 5; int y = 10;}namespace second{ double x = 3.1416; double y = 2.7183;}int main () { using first::x; using second::y; c... 阅读全文
posted @ 2013-11-20 21:12 centerall 阅读(169) 评论(0) 推荐(0)
摘要:Namespaces allow to group entities like classes, objects and functions under a name. This way the global scope can be divided in "sub-scopes", each one with its own name.The format of namespaces is:namespace identifier{ entities}Where identifier is any valid identifier and entities is the 阅读全文
posted @ 2013-11-20 20:59 centerall 阅读(177) 评论(0) 推荐(0)