• Saves Valuable Time
  • Trusted Accuracy for 14 Years
  • 15-Day Money-Back Guarantee

C++ Equivalent to VB Optional Parameters

In C++, it is more common to call them 'default parameters'.

VB C++
Sub TestOptional(Optional x As Integer = 0)
    ...
End Sub
void TestOptional(int x = 0)
{
    ...
}


Use VB to C++ Converter to convert from VB to C++.     

Additional resource: VB.NET and C++ Equivalents


Copyright © 1997 – 2018 Tangible Software Solutions Inc.