Themuppeteer
Programmer
I know there are different solutions to do following (one of them is the use of default values in the default constructor),but I would like to know why this isn't wright:
class A
{
A(){ cout<<"constructor";}
A(int i){ A();
cout<<"the number:"<<i<<endl;}
}
I call my constructor from in my overloaded constructor.
No compiler error is given.
Why why why ??
The Muppeteer.
themuppeteer@hotmail.com
Don't eat yellow snow...
class A
{
A(){ cout<<"constructor";}
A(int i){ A();
cout<<"the number:"<<i<<endl;}
}
I call my constructor from in my overloaded constructor.
No compiler error is given.
Why why why ??
The Muppeteer.
themuppeteer@hotmail.com
Don't eat yellow snow...