Skip to content

A simple C++ console-based electronic voting system using OOP and file handling. Supports admin, voter, and candidate roles with secure login and vote casting.

Notifications You must be signed in to change notification settings

FAHAD-ALI-github/E-Voting-System-CPP

Repository files navigation

🗳️ E-Voting System – C++ Console Application

A simple and secure electronic voting system built using C++. It simulates a real-world election process, allowing voters and candidates to participate, while administrators manage the overall system.


📌 Features

👤 Admin

  • Login
  • Add Candidates
  • Add Voters
  • Start and Manage Elections
  • View All Registered Users

🧑‍🗳️ Voter

  • Sign Up (CNIC, Name, DOB, Password)
  • Login
  • Cast Vote (Only Once in an election)

🧑‍💼 Candidate

  • Sign Up and Login
  • Take Part in Elections

🏗️ Object-Oriented Design

  • Member (Base Class)
    • 🔹 Voter (inherits from Member)
    • 🔹 Candidate (inherits from Member)
  • Admin (Separate Class)

💾 Data Handling

  • File Handling to store:
    • Voter data
    • Candidate data
    • Votes
  • Data is persistent across runs

🛠️ Technologies Used

  • Language: C++
  • Concepts: OOP, File I/O, Inheritance, Authentication, Menu Interface

🚀 How to Run

  1. Open the project in your preferred C++ IDE (VS Code, Code::Blocks, etc.)
  2. Compile:
    g++ evoting.cpp -o evoting
  3. Run:
    ./evoting

👨‍💻 Author

Fahad Ali
Full Stack Developer | Python, Django, React | Software Engineer
LinkedInGitHub


About

A simple C++ console-based electronic voting system using OOP and file handling. Supports admin, voter, and candidate roles with secure login and vote casting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages