#include "NumericQuestion.h" NumericQuestion::NumericQuestion() { } long NumericQuestion::ask() { print(std::cout); std::cout << "Your answer: "; long playerAnswer = 0; if ( ! (std::cin >> playerAnswer) ) return -1; return playerAnswer == std::stol(answer); }