摘要:
only declarations of constructors can be `explicit'explicit关键字只用于构造函数声明(包括声明即定义)函数模板不能做虚函数 error: templates may not be ‘virtual’static用于类成员函数声明,而非定义。类中的静态数组在类外允许一次性初始化:class A {public: static int arrary[3];}; int A::array[3] = {0, 1, 2};函数的缺省参数写在声明或定义均可,建议写在声明里,方便阅读理解。线程和异常处理的坑很多。。尽量不使用异常处理,尽量不使 阅读全文
posted @ 2012-10-19 17:35
功夫Panda
阅读(760)
评论(0)
推荐(0)

浙公网安备 33010602011771号