Hi,
I have a C++ prog. which is to be called by either 4 or 5 arguments, i.e. it is always called with 4 arguments however sometimes it might be called with an optional 5th argument.
How do we cope with this situation.
The prog. breaks if only four arguments are passed, 5th being optional and not being passed.
Appreciate any help
Thanks
I have a C++ prog. which is to be called by either 4 or 5 arguments, i.e. it is always called with 4 arguments however sometimes it might be called with an optional 5th argument.
How do we cope with this situation.
The prog. breaks if only four arguments are passed, 5th being optional and not being passed.
Appreciate any help
Thanks