Бележка
Достъпът до тази страница изисква удостоверяване. Можете да опитате да влезете или да промените директориите.
Достъпът до тази страница изисква удостоверяване. Можете да опитате да промените директориите.
'name' : a namespace definition must appear either at file scope or immediately within another namespace definition
Remarks
You defined namespace name incorrectly. Namespaces must be defined at file scope (outside all blocks and classes) or immediately within another namespace.
Example
The following example generates C2870:
// C2870.cpp
// compile with: /c
int main() {
namespace A { int i; }; // C2870
}