?? assign1.c
字號:
// PR c++/13009// { dg-do run }struct A { char a;};struct B: public virtual A { #if 0 // this piece of code works around the problem B& operator= (const B& other) { A::operator= (other); } #endif};struct C: public B { char c;};int main() { B b; b.a = 'b'; C c; c.a = c.c = 'c'; c.B::operator= (b); if (c.a != 'b' || c.c != 'c') return 1;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -