编辑代码

#include <iostream>
using namespace std;

class C
{
public:
    C(int x, int y)
    {
        _x = x;
        _y = y;
    }
    void print()
    {
        cout << _x << _y;
    }
private:
    int _x, _y;
};

int main()
{
    
    C a(10, 20);
    a.print();

	return 0;
}