摘要:
标准中对于类成员访问有如下说明: 3 If E1 has the type “pointer to class X,” then the expression E1->E2 is converted to the equivalent form (*(E1)).E2; 即对于指向c... 阅读全文
posted @ 2011-04-21 01:48
BiG5
阅读(175)
评论(0)
推荐(0)
摘要:
通过一个非法的指针或者NULL指针调用成员函数会发生什么? #include struct foo { void bar () { std :: cout bar (); // (a) f -> baz (); // (b) } 我... 阅读全文
posted @ 2011-04-21 01:36
BiG5
阅读(194)
评论(0)
推荐(0)
浙公网安备 33010602011771号