Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

store array in vector

#include <vector>
#include <array>

std::vector<std::array<int, 2>> weights;
std::array<int, 2> weight = {1, 2};
weights.push_back(weight);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #store #array #vector
ADD COMMENT
Topic
Name
9+3 =