#include #include "Question.h" Question::Question() { } void Question::print(std::ostream& out) const { out << this->text << std::endl; } bool Question::ask() { this->print(std::cout); std::string playerAnswer; std::getline(std::cin, playerAnswer); //bool correct = this->vtable[0](playerAnswer); bool correct = this->isRightAnswer(playerAnswer); std::cout << (correct ? "Right!\n\n" : "Wrong!\n\n"); return correct; }