access8.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 31 行

C
31
字号
// From: smidt@dd.chalmers.se (Peter Smidt)// Date: 25 Jan 1994 23:41:33 -0500// Bug: g++ forgets access decls after the definition.// Build don't link:class inh {        int a;protected:        void myf(int);};class mel : private inh {protected:        int t;	inh::myf;};class top_t : protected mel {public:        void myf(int);};void inh::myf(int i) {        a = i;}void top_t::myf(int i) {        inh::myf(i);		// ERROR - cannot convert to inh	mel::myf(i);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?