Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

initialize vector in c++

#include 
#include
using namespace std;
int main()
{
vector <int> v{1,2,3,4,5};
for(int value:v)
cout<<value<<" ";
return 0;
}
Source by favtutor.com #
 
PREVIOUS NEXT
Tagged: #initialize #vector
ADD COMMENT
Topic
Name
3+2 =