hi ..pleas any one can help me to write aprogram that allows the user to enter the last names of 5 candidates in a local election and the number of votes received by each candidate, the program should then out put each candidates name the number of vote percentage of the total votes received by the candidates received.
It should too output the winner of the election…
Write the program by using dynamic array…??
i dont understand the dynamic array very well and i wrote a code but it was wrong any one can help..
:)
luliana
0
Newbie Poster
Recommended Answers
Jump to PostShow the code You wrote.
Jump to Postuse the "new" keyword and have a pointer point to this new data. That's what dynamic allocation is and make the new data an array which can have any size. So may use a variable.
All 5 Replies
pecet
1
Junior Poster in Training
lotrsimp12345
37
Posting Pro in Training
luliana
0
Newbie Poster
pecet
1
Junior Poster in Training
luliana
0
Newbie Poster
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.