namespace3.cc
来自「压缩包里有教材<<C++模式设计-基于QT4开源跨平台开发框架>」· CC 代码 · 共 24 行
CC
24 行
#include "a.h"#include "b.h"int main() { using namespace A; /* brings all of A into scope */ f(); using namespace B; /* brings all of B into scope */ g(); f(); }/*OUTOOP> gpp namespace3.ccnamespace3.cc: In function `int main()':namespace3.cc:10: call of overloaded `g ()' isambiguousb.h:6: candidates are: void B::g()a.h:6: void A::g()namespace3.cc:11: call of overloaded `f ()' isambiguousb.h:4: candidates are: void B::f()a.h:4: void A::f()OOP>*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?