Hi,
I want to create a function with default arguments.
e.g.
void fun(int i=90,j=100)
{
}
void main()
{
fun();
fun(34);
fun(50,60);
}
but it is not working and the complaier tells me that I don't give enough arguments.
any idea?
rgrds megetron.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 14 of 14
Thread: default argumentsThreaded View
|
Click Here to Expand Forum to Full Width |