#include "stdafx.h"
struct OPPClass{
int a;
int b;
int rootB(int a, int b);
};
int OPPClass::rootB(int a, int b)
{
return a + b;
}
int _tmain(int argc, _TCHAR* argv[])
{
OPPClass *pObj = new OPPClass;
printf("result = %d\n", pObj->rootB(1, 2));
delete pObj;
return 0;
}