This is a Game Sample Menu based on MenuTemplate project available on Hasenfresser. This is an easy template for simple menus in Linux and Windows terminals.
Nesse repositório os alunos de POO poderam encontrar a solução para as questões da Prova P1
Vide PDF
First, clone the repository using the command line below:
git clone https://github.com/aceiro/GameMenu.git
To compile this project you should use the command line below:
g++ main.cpp MenuTemplate/MenuTemplate.cpp MenuTemplate/Entry.cpp MenuTemplate/ExternFunctions/getChar.cpp -o GameMenu
if you use Linux system operation you must use the #define LINUX
to be abble to compile using C++. In other case (using Windows) you must not change anyone directive because the original project is compile with this strategy.
To find out where it is need to change the directive you can use the command below that uses a regex with grep to show which files uses the directive for WINDOWS.
$ grep -iaR '#define WINDOWS'
MenuTemplate/MenuTemplate.hpp:#define WINDOWS
MenuTemplate/ExternFunctions/getChar.hpp:#define WINDOWS
Using $ grep -ianR '#define WINDOWS
you can see the line number too.
First commit to be eable to use in lessons and C++ course in the year 2019.
Changed Doxygen comments to C++ style. Removed old include guards and replaced them with #pragma once.
Changed all parameters to references. Fixed some small issues in Doxygen file.
Data types normalized. Fixed small issues at WINDOWS build in function getChar().
MenuTemplate now works at Linux and Windows terminals! You just have to set the preprocessor directive to "LINUX" or "WINDOWS" in the source code.
Initial version. MenuTemplate only works in Linux terminal.
Just copy the folder "MenuTemplate" into your project (main folder) and include "MenuTemplate\MenuTemplate.hpp" in your source code.
I'm happy if you'll send some helpful bug reports to improve the software.
For more informations, you can have a look at the official wiki! (under construction, stay tuned)
Greetings, Hasenfresser