2010-01-28 17:58:02 +00:00
|
|
|
namespace A
|
|
|
|
{
|
2010-01-26 16:47:35 +00:00
|
|
|
int ax = 9;
|
|
|
|
}
|
|
|
|
|
2010-01-28 17:58:02 +00:00
|
|
|
namespace B
|
|
|
|
{
|
2010-01-26 16:47:35 +00:00
|
|
|
using namespace A;
|
|
|
|
}
|
|
|
|
|
2010-01-28 17:58:02 +00:00
|
|
|
namespace C
|
|
|
|
{
|
2010-01-26 16:47:35 +00:00
|
|
|
using namespace B;
|
|
|
|
}
|
|
|
|
|
2010-01-28 17:58:02 +00:00
|
|
|
using namespace C;
|
|
|
|
|
2010-01-26 16:47:35 +00:00
|
|
|
//---------------
|
2010-01-28 17:58:02 +00:00
|
|
|
namespace D
|
|
|
|
{
|
2010-01-26 16:47:35 +00:00
|
|
|
using namespace D;
|
|
|
|
int dx = 99;
|
|
|
|
}
|
2010-01-28 17:58:02 +00:00
|
|
|
using namespace D;
|
2010-01-26 16:47:35 +00:00
|
|
|
|
|
|
|
//---------------
|
2010-01-28 17:58:02 +00:00
|
|
|
namespace
|
|
|
|
{
|
|
|
|
namespace
|
|
|
|
{
|
2010-01-26 16:47:35 +00:00
|
|
|
int xx = 999;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-01-28 17:58:02 +00:00
|
|
|
//---------------
|
|
|
|
namespace E
|
|
|
|
{
|
|
|
|
int ex = 9999;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace F
|
|
|
|
{
|
|
|
|
namespace FE = E;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace G
|
|
|
|
{
|
|
|
|
namespace GF = F;
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------
|
|
|
|
int main ()
|
|
|
|
{
|
2010-01-26 16:47:35 +00:00
|
|
|
using namespace D;
|
2010-01-28 17:58:02 +00:00
|
|
|
namespace GX = G;
|
|
|
|
return ax + dx + xx + G::GF::FE::ex;
|
2010-01-26 16:47:35 +00:00
|
|
|
}
|