-> Allows us to set up a flexible and trustworthy voting system
-> Applicable for large as well as small group of people e.g. a batch, a class.
-> Keeps a record of every voting process.
Working of Code:-
The Header File with name ELECTION.H :-
Structure CAND: Use: Stores name and vote count
Functions:-
candname: Use: Stores candidate info in structure as well as file
flcreate: Use: Creates ‘count’ no. of files initiates with ‘0’
isSpecial: Use: Check for blank PRN from file
isAuthentic: Use: PRN Authentication
delFromfile: Use: Delete vote by PRN from given file
admin Use: 1.Election initiation 2.Election Continuation 3. Illegal vote deletion 4. Result Declaration
stu Use: All functions at Voter’s end
Recommended Compiler: Turbo C++ Can be run on any C compiler