• Saves Valuable Time
  • Trusted Accuracy since 2004
  • 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 © 2004 – 2019 Tangible Software Solutions, Inc.