Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

assign array to array

#include <algorithm>
int main()
{
  int numbers[5] = {1, 2, 3};
  int values[5] = {};
  std::copy(numbers, numbers + 5, values);
}

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #assign #array #array
ADD COMMENT
Topic
Name
8+4 =