This is a simple command-line voting system implemented in C. It allows users to register as voters, cast votes for candidates, and view the votes received by each candidate.
- Voter Registration: Users can register as voters by providing a unique username and password.
- Candidate Registration: Candidates are predefined in the system and cannot be added dynamically.
- Voting: Registered voters can cast their votes for any candidate.
- Vote Count Display: Users can view the total votes received by each candidate.
To compile and run the program, follow these steps:
- Clone the repository to your local machine.
- Navigate to the project directory.
- Compile the program using a C compiler (e.g., gcc).
- Run the compiled executable.
- Choose the desired option from the main menu:
- Option 1: Register as a voter.
- Option 2: Cast a vote.
- Option 3: View the votes received by each candidate.
- Option 4: Exit the program.
- Follow the on-screen instructions to complete the selected action.