8 #include <Wt/WApplication.h>
26 std::getline(dict, retval);
32 std::random_device rd;
33 std::mt19937 gen(rd());
34 std::uniform_int_distribution<> distribution(0, numwords);
35 int selection = distribution(gen);
38 std::getline(dict, retval);
40 std::getline(dict, retval);
41 for (
unsigned int i = 0; i < retval.size(); ++i) {
42 if (retval[i] <
'A' || retval[i] >
'Z') {
43 std::cerr <<
"word " << retval <<
" contains illegal data at pos " << i <<
'\n';
std::string randomWord(Dictionary dictionary)
static std::string appRoot()