64,682
社区成员
发帖
与我相关
我的任务
分享
public class TestA
{
private:
int b;
public:
TestA();
static TestA GetTestA();
};
testA testA::GetTestA()
{
TestA tmp();
if(...)
return tmp;
else
//我要返回一个 TestA 的空对象,如同 C#中的 return null; 该如何写
}