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
In this case your while loop will look like
while
int i = 0; int a = 0; while (i < n){ cin >> a; V.push_back(a); ++i; }