Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

initialize a vector with same values

vector<int> v(1000, 1);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #initialize #vector #values
ADD COMMENT
Topic
Name
4+1 =