Answers for "taking user input for a vector in c++"

C++
0

taking user input for a vector in c++

vector<int> g1;
for(i=0;i<n;i++)
{
  cin>>a;
  g1.push_back(a);
}
Posted by: Guest on June-11-2021

Code answers related to "taking user input for a vector in c++"

Browse Popular Code Answers by Language