I\'m trying to ask the user to enter numbers that are put into a vector, then using a function call to count the numbers, why is this not working? I am only able to count t
you have 2 options:
If you know the size of vector will be (in your case/example it's seems you know it):
vector V(size) for(int i =0;i>V[i]; }
if you don't and you can't get it in you'r program flow then:
int helper; while(cin>>helper){ V.push_back(helper); }