Array initialization without gcnew
#include "stdafx.h"
int main()
{
array<int>^ array_int1 = { 0, 1, 2 };
array<int>^ array_int2 = gcnew array<int> { 0, 1, 2 };
int i = 1, j = 2, k = 3;
array<int>^ array_int3 = { i, j, k };
}
Related examples in the same category