65,211
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
class Test
{
public:
void Print();
Test(int ,int);
private:
int i;
int j;
};
void Test::Print()
{
cout<<i<<" "<<j<<endl;
}
Test::Test(int iVlaue, int jValue)
{
i = iVlaue;
j = jValue;
}
int main()
{
Test* test = new Test(3,5);
test->Print();
return 0;
}