摘要:
通常我们会看到一些函数声明后面会跟着一个const,如下 void function() const{} 这个const是做什么的呢? 看一下下面的例子,就知道了。直接在编译前,就会提示下面的两个错误. #include "stdafx.h" #include using namespace std; class aa{ int num; public: ... 阅读全文
posted @ 2016-09-14 12:27
27House
阅读(579)
评论(0)
推荐(0)