2010-01-26 15:48:25 +00:00
|
|
|
namespace A
|
|
|
|
{
|
|
|
|
int x = 11;
|
|
|
|
}
|
|
|
|
|
|
|
|
int x = 22;
|
|
|
|
int y = 0;
|
|
|
|
|
|
|
|
class B
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
int x;
|
|
|
|
|
|
|
|
int
|
|
|
|
func()
|
|
|
|
{
|
|
|
|
x = 33;
|
|
|
|
y++; // marker1
|
|
|
|
|
|
|
|
{
|
|
|
|
int x = 44;
|
|
|
|
y++; // marker2
|
|
|
|
|
|
|
|
{
|
|
|
|
int x = 55;
|
|
|
|
y++; // marker3
|
|
|
|
|
|
|
|
{
|
|
|
|
using namespace A;
|
|
|
|
y++; // marker4
|
|
|
|
|
2010-03-15 17:29:36 +00:00
|
|
|
{
|
|
|
|
using A::x;
|
|
|
|
y++; // marker5
|
|
|
|
}
|
2010-01-26 15:48:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
B theB;
|
|
|
|
return theB.func();
|
|
|
|
}
|