c++ initialize array 1 to n code example
Example: c++ initialize array 1 to n
std::vector<int> arr(SIZE);
for (int i = 0; i < SIZE; i++)
{
arr[i] = i;
}
std::vector<int> arr(SIZE);
for (int i = 0; i < SIZE; i++)
{
arr[i] = i;
}