Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

vector modify elements cpp

vector<string> vec;
vec.push_back(new string()); // allocate
vec[0]="hello"; // assign/modify
 
PREVIOUS NEXT
Tagged: #vector #modify #elements #cpp
ADD COMMENT
Topic
Name
5+5 =