Array

Vector syntax cheat sheet

int nums[3] = {1,2,3};
vector<int> v(nums, nums+3);
for ( auto it = v.begin(); it != v.end(); it++ ) {
  cout << *it << endl;
}

results matching ""

    No results matching ""