0

I'm working on plurality on pset3, and so far I haven't edited any code, but whenever I try enter a vote it comes back as 'invalid vote'. Is this normal? And if so what should I do to solve this bit.

1

It is normal. If you take a close look at the code provided, the vote function for now returns false and the main function will print invalid vote if the return value is false. Once implemented, the vote function should return false if the vote is invalid.

Hope this helps. If it does then please check the tickmark.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .