Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Initialize Vector Iterator with begin() function

vector<int> num = {1, 2, 3, 4, 5};
vector<int>::iterator iter;

// iter points to num[0]
iter = num.begin();
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Initialize #Vector #Iterator #function
ADD COMMENT
Topic
Name
8+5 =