• Saves Valuable Time
  • Trusted Accuracy since 2004
  • 15-Day Money-Back Guarantee

C++ Equivalent to VB List

The nearly exact C++ equivalent to .NET's List collection is the std::vector collection.

VB C++
Imports System.Collections.Generic

Sub Lists()
    Dim myList As New List(Of Integer)()
    Dim i As Integer = 1
    myList(0) = i
    i = myList(0)
End Sub
#include <vector>

void Lists()
    std::vector<int> myList;
    int i = 1;
    myList[0] = i;
    i = myList[0];

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

Additional resource: VB.NET and C++ Equivalents

Copyright © 2004 – 2021 Tangible Software Solutions, Inc.