Study Dungeon  1.0.0
A group project for COSC345
Public Member Functions | Data Fields
FlashCard Class Reference

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 {}
 

Detailed Description

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.

Member Function Documentation

◆ stringCardAsTemplate()

std::string FlashCard::stringCardAsTemplate ( )

Returns the card in template form as a string.

Returns
std::string

Field Documentation

◆ answer

std::string FlashCard::answer {}

The flashcard answer

◆ difficulty

CardDifficulty FlashCard::difficulty = UNKNOWN

The user defined difficulty

◆ n_times_answered

int FlashCard::n_times_answered {}

The number of times the question has been answered

◆ question

std::string FlashCard::question {}

The flashcard question


The documentation for this class was generated from the following files: