A command line based quiz.
These instructions will get you a copy of the project up and running on your local machine.
> A modern C++ compiler
> Either Visual Studio 2019 (on Windows) or g++ compilers are recommended
The project and the solution files were made for Visual Studio 2019. However, the code is standard C++ and any compiler should work (tested on MSCV 2019 on Windows 10 and g++ on Ubuntu on WSL)
- Clone the repo
git clone https://github.com/AshishKnightfury/IQ_Quiz.git
cd IQ_Quiz
- Open the solution file in Visual Studio
- Right click and select 'build'. The executables are built in the
bin
directory - Run the compiled executable as
IQ_Quiz.exe -f <repo directory>\questions.json
- Navigate to src folder
cd src
- Compile the code
g++ IQ_Quiz.cpp
- Run the output file
./a.out -f ./../questions.json
A sample list of questions is provided in questions.json
. However, you can use your own questions using a JSON file in the same format. Keep in mind that the app in its current state only supports 4 options per question.
root
contains theIQ_Quiz.sln
solution file, along with the readme and sub-directoriesbin
andbin-int
stores the output binaries and intermediate files respectivelyIQ_Quiz
has the Visual Studio project filessrc
contains the actual source code in.cpp
files
This is how the repository is structured. Support for a build system like premake or cmake is planned, which will change the directory structure. In such case this file will be updated accordingly.
Initial work - AshishKnightfury
See also the list of contributors.