|
Study Dungeon
1.0.0
A group project for COSC345
|
This structure holds the information for each flashcard. More...
#include <deck.h>
Public Member Functions | |
| FlashCard (std::string question, std::string answer, CardDifficulty difficulty, int n_times_answered) | |
| void | printCard () |
| Prints the card question and answer. | |
| void | printCardAsTemplate () |
| Used to. | |
| std::string | stringCardAsTemplate () |
| Returns the card in template form as a string. More... | |
Data Fields | |
| std::string | question {} |
| std::string | answer {} |
| CardDifficulty | difficulty = UNKNOWN |
| int | n_times_answered {} |
This structure holds the information for each flashcard.
A flashcard consists of a question, answer and difficulty. The number of times the question has been answered is kept track of.
| std::string FlashCard::stringCardAsTemplate | ( | ) |
Returns the card in template form as a string.
| std::string FlashCard::answer {} |
The flashcard answer
| CardDifficulty FlashCard::difficulty = UNKNOWN |
The user defined difficulty
| int FlashCard::n_times_answered {} |
The number of times the question has been answered
| std::string FlashCard::question {} |
The flashcard question