i am using a program where candidates will be given votes. I know want to compare the votes each candidates has been given, and then find the one wth the highest number. how would i do this. please provide code example if possible

You give me code first.

All you have to do is total the votes, and use a simple if statement.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.