小教程:从基因组数据到功能# Biology - 生物学
h*g
1 楼
namespace {static int n;}
namespace A{
namespace {static int n}
}
using namespace A;
int main()
{
n = 5;
return 0;
};
Referring to the sample code above, which one of the following statements is
true?
A.
There is nothing wrong with the sample code.
B.
Unnamed namespaces are illegal.
C.
Nested namespaces are illegal.
D.
Nested namespaces that are unnamed are illegal.
E.
The reference to n is ambiguous.
此题为啥选E?
namespace A{
namespace {static int n}
}
using namespace A;
int main()
{
n = 5;
return 0;
};
Referring to the sample code above, which one of the following statements is
true?
A.
There is nothing wrong with the sample code.
B.
Unnamed namespaces are illegal.
C.
Nested namespaces are illegal.
D.
Nested namespaces that are unnamed are illegal.
E.
The reference to n is ambiguous.
此题为啥选E?