Tags: %TAGME{ tpaction="" web="SCMP118" tag="" }% view all tags

Hands On

Candidate Class


  1. Go here to get candidate class
  2. Make a fork of this code
  3. Add 2 new candidates to the code.
  4. Modify the class to also store and display candidates age (integer).
  5. Modify polls to be an array of ints. Add a int to keep track of the number of polls stored (max 100). Add a member function "addPoll" which add a new poll. Add a member function "showPolls to show polls for a candidate.
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2019-10-24 - JimSkon
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback