我在用C/C++LI创建带有名称空间的托管类时遇到问题. 我要执行以下操作:#pragma once #include "abc.h" #ifdef _MANAGED #using <system.dll> using namespace System; using namespace System::IO; using namespace System::Collections::Generic; using namespace System::Globalization; #endifnamespace Animals{public ref class Pets{Pets::Pets(){}};}我有几个不同的问题: A)当我将此代码放入.cpp文件时,它可以正常编译.但...