Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

how to reset all values of 2d vector to 0

for (auto &v: vec) {
    std::fill(v.begin(), v.end(), 0);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reset #values #vector
ADD COMMENT
Topic
Name
7+4 =