#include <string>
Go to the source code of this file.
Enumeration Type Documentation
Function Documentation
Definition at line 16 of file Dictionary.C.
{
std::ifstream dict;
} else {
}
std::string retval;
int numwords = 0;
while(dict) {
getline(dict, retval);
numwords++;
}
dict.clear();
dict.seekg(0);
srand(time(0));
int selection = rand() % numwords;
while(selection--) {
getline(dict, retval);
}
getline(dict, retval);
for(unsigned int i = 0; i < retval.size(); ++i)
if(retval[i] < 'A' || retval[i] > 'Z')
std::cout << "word " << retval
<< " contains illegal data at pos " << i << std::endl;
return Wt::widen(retval);
}