please help

Write a recursive function with the signature int Count(vector<int> arr, int
value) that counts the number of times value occurrs in the vector arr and returns that count.
For example, if arr = {1,2,3,2,4,2,5,6,7} and value = 2 then your function should
return 3.
What have you written so far?
nothing! :(
Where is your attempt on this? Try solving this yourself and if you encounter any problems (errors or stuck at some part) then ask. We are not going to do your homework for you.
You know the basic structure of the program, right? It will have includes at the top, a main function, and that Count function required by the assignment. At least get a skeleton program written.

Then, go as far as you can until you get stuck, and post your code with a more specific question for us to help with ;)
Last edited on
i am working on it now.
thank you :)
Topic archived. No new replies allowed.