Need help with a function...
Hey, my problem is that i have a function to make with the declaration as such:
int cleanest(Vector<List<int> >);
it is a functoin that looks through a vector of linked lists and returns the subscript address ( [ ] ) of the cleanest element in the Vector by adding up all of the items in the list of the vector.
:confused:
Its confusing me quite a bit and im not exactly sure how to do it. You have to look through it a random number of times between 1 and 5. Here is what i have so far for the code (not too much).
int cleanest(Vector<List<int> > Dishmachine)
{
for (int l = 0; l < (rand()%5+1); l++)
{
}
return cleanest;
}
If you can help me with my problem that would be greatly appreciated, cause its giving me a lot of problems.
Thanks ALot.
Heavy-D.