J
junw2000
In the function below:
void func1( int a = 10 )
{
//function body
}
The variable a is a default argument.
For the function below:
void func2( MyClass obj ) //MyClass is a defined class.
{
//function body
}
How to make the variable obj a default argument?
Thanks.
void func1( int a = 10 )
{
//function body
}
The variable a is a default argument.
For the function below:
void func2( MyClass obj ) //MyClass is a defined class.
{
//function body
}
How to make the variable obj a default argument?
Thanks.