This repository contains the source code for the project Zodiac Calculator V2.0. This project was submitted as homework during my third year at I.T.I.S. Magistri Cumacini to my I.T. teacher.
I.D.E.: VSCode
Language: C++ with graphics.h
Compiler: MinGW64
- Zodiac Sign calculation with cusp and ascendant
- Zodiac Sign display Animation
- Cool and modern graphics using and old lib
To install and try this project you need to:
- Download the most recent release of this project.
- Unzip the content of the downloaded file.
To run the code of this project you need to:
- execute the file run.bat, if needed give the permession for execution
You need to install the graphics.h library and its relative libs. All files can be found here and should be placed in the respective folders: .h files in the compiler's include folder and .a files in the compiler's lib folder.
I personally recommend to use MinGW64 as the compiler for this project, and place his bin folder inside the windows System Enviroment Variables
After you have installed and configured the compiler you can run this command in the root folder of this project:
g++ main.cpp -o main.exe -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 -lsfml-graphics -lsfml-window -lsfml-system
I reccomend to use the VSCode extension code runner to do all this stuff by just pressing a button. My personal configuration is:
{
"code-runner.runInTerminal": true, //true terminal //false output
"code-runner.executorMap": {
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && .\\$fileNameWithoutExt",
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 -lsfml-graphics -lsfml-window -lsfml-system && .\\$fileNameWithoutExt ",
},
}
All this should be placed inside the settings.json file from VSCode
For support, you can create an issue on this repository, as long as the project is supported
- Mattia Marelli: @0tia0