A.
struct tagTest
{
tagTest()
{
a = 0;
}
int a;
};
class CTestMng
{
private:
tagTest m_Value;
public:
void GetTest(tagTest *pResult)
{
pResult = &m_Value;
}
};
B.
struct tagTest
{
tagTest()
{
a = 0;
}
int a;
};
class CTestMng
{
private:
tagTest m_Value;
public:
void GetTest(tagTest &result)
{
result = m_Value;
}
};
C.
struct tagTest
{
tagTest()
{
a = 0;
}
int a;
};
class CTestMng
{
private:
tagTest m_Value;
public:
void GetTest(tagTest result)
{
result = m_Value;
}
};
D.
struct tagTest
{
tagTest()
{
a = 0;
}
int a;
};
class CTestMng
{
private:
tagTest m_Value;
public:
void GetTest(tagTest *&pResult)
{
pResult = &m_Value;
}
};
阅读(239) | 评论(0) | 转发(0) |