Project developed with the intention of carrying out a local vote, using files in C.
Before starting, you will need to have the following tools installed on your machine: Git, GCC ou MinGW.
Also, it's nice to have an editor to work with code like the VSCode, or it could be the IDE CLion.
- So that the editor can compile in C/C++ follow this tutorial link.
-
After running the downloaded download, click install:
-
Proceed until you reach a screen to choose which features to install, select mingw32-base and mingw32-gcc-g++:
-
After that, click on Install > Apply Changes.
-
Now, you will need to add the MinGW binary directory to the Windows PATH, for that, click on Start, then right click on Computer, and then on Properties.
-
Click Advanced System Settings:
-
Click Environment Variables:
-
Find the PATH variable, select it, and click edit, at the end of it add a “;” (semicolon), and put the directory of the binaries that were installed with MinGW (usually in C:MinGWbin).
-
To verify the installation was successful, open Command Prompt and type gcc.
- Some distributions already have gcc installed by default, however, some you need to install the part as a tool, below are the commands to install on Fedora, OpenSUSE and Ubuntu:
Fedora
> sudo yum install gcc
OpenSUSE
> sudo zypper in gcc
Ubuntu
> sudo apt-get update
> sudo apt-get install gcc-4.4
- To verify the installation, run in the terminal:
> gcc --help
> gcc programa.c -o executavel
ou
> gcc -o executavel programa.c
- If there is any compilation error, it will show on the screen.
- To run the compiled file
> ./executavel
# Clone this repository
$ git clone <https://github.com/larasous/Electoral-System>
-
file main.c
-
Register of States, Municipalities, Zones, Sections, Voters, Year of Election, Candidates and Parties
-
Listing of States, Municipalities, Zones, Sections, Voters, Year of Election, Candidates and Parties
-
Search by States, Municipalities, Zones, Sections, Voters, Year of Election, Candidates and Parties
-
Updating of States, Municipalities, Zones, Sections, Voters, Year of Election, Candidates and Parties
-
Removal of States, Municipalities, Zones, Sections, Voters, Year of Election, Candidates and Parties
-
file main_votacao.c
-
Confirmation of electoral title
-
Vote operation
-
Candidate Verification
-
Election result
- The code is not fully complete to be a voting system, it was developed only as a university grade project.
- Missing to connect the information with each other, and blank voting operation.