Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

taking user input for a vector in c++

vector<int> g1;
for(i=0;i<n;i++)
{
  cin>>a;
  g1.push_back(a);
}
 
PREVIOUS NEXT
Tagged: #user #input #vector
ADD COMMENT
Topic
Name
1+9 =