Possible Duplicate:
c++ call constructor from constructor
I have two constructors for the same class and I want one of the constructors to send data to the second constructor.
I know how to do it in C# but I'm new to C++ and I don't know if this is possible like so:
class a
{
public:
a (int x);
a (int x, int b, char g);
};
a :: a(int x) : this(x, 6, 'h')
{
}