Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdint.h>
- namespace A {
- namespace B{
- namespace C {
- class D {
- public:
- void g() {
- }
- };
- D dd;
- };
- class F {
- };
- };
- class E {
- public:
- void f() {
- using B::F;
- using B::C::D;
- F f;
- D d;
- using ::A::B::C::dd;
- using ::std::cout;
- dd.g();
- cout << "Hello World!" << ::std::endl;
- }
- };
- };
- int main() {
- A::B::C::D b;
- using ::A::B::C::D;
- D b2;
- ::A::E e;
- e.f();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement