J
junw2000
How to assign a default arguement to ofstream?
For example:
void My_Function( int a, int b = 0, ofstream outFile )
{
//Boby of the code
}
The arguement b has a default value 0. How to assign a default
arguement to the arguement outFile so that the caller of the function
does not need to pass a value to it?
Thanks.
For example:
void My_Function( int a, int b = 0, ofstream outFile )
{
//Boby of the code
}
The arguement b has a default value 0. How to assign a default
arguement to the arguement outFile so that the caller of the function
does not need to pass a value to it?
Thanks.