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

C++ Equivalent to VB Indexers

VB C++
Default Public Property Item(ByVal index As Integer) As Integer
        Return field(index)
    End Get
    Set(ByVal value As Integer)
        field(index) = value
    End Set
End Property
int &operator [](int index)
    return field(index);

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

Copyright © 1997 – 2017 Tangible Software Solutions Inc.