摘要:
11 阅读全文
posted @ 2021-03-30 20:13
唯一诺
阅读(51)
评论(0)
推荐(0)
摘要:
template<typename T> void funcTmp(T a, T b) { cout << "this is yiban" << endl; } template<> void funcTmp(const char* a, const char* b) { cout << "this 阅读全文
posted @ 2021-03-30 19:27
唯一诺
阅读(59)
评论(0)
推荐(0)
摘要:
1. 必须使用初始化列表初始化一个引用成员; class CBase { public: CBase(int a) : m_a(a) //正确,m_a是一个变量的引用,必须通过初始化列表初始化 { // m_a = a; //错误 cout << "m_a:" << m_a << endl; } p 阅读全文
posted @ 2021-03-30 19:24
唯一诺
阅读(1862)
评论(0)
推荐(0)

浙公网安备 33010602011771号