69,369
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
class CTest
{
public:
CTest(int i, int j)
:m_ni(i), m_nj(j)
{
}
~CTest()
{
}
void FunA()
{
printf("i = %d, j = %d. \n", m_ni, m_nj);
}
void FunC(int i, int j)
{
m_ni = i;
m_nj = j;
}
private:
int m_ni;
int m_nj;
};
int main()
{
CTest test(1, 0);
test.FunA();
test.FunC(0, 1);
test.FunA();
return 0;
}
CTestView::CTestView()
: CFormView(CTestView::IDD),
oCal(0,1),
{
//{{AFX_DATA_INIT(CTestView)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}