#include "NumericQuestion.h" #include NumericQuestion::NumericQuestion() { } bool NumericQuestion::isRightAnswer(const std::string& playerAnswer) const { return std::strtod(playerAnswer.c_str(), nullptr) == std::strtod(this->answer.c_str(), nullptr); }