As example, accessing data from
Expand|Select|Wrap|Line Numbers
- array<int>^ data = gcnew array<int>(1000000);
-
for(int i = 0; i < data->GetLength(0); i++){
data[i] = i;
}
Expand|Select|Wrap|Line Numbers
- int *data;
- data = new int[1000000];
-
for(int j = 0; j <1000000; j++){
data[j] = j;
}
Anyone know why this happen? Is it the way i write my code wrong? Currently working in console enviroment but will move to GUI so i plan to change all the the array to CLI::array. Would C# be better if i plan to construct the program?