How can I exclude words with apostrophes when reading into a table of strings?
- by rearden
ifstream fin;
string temp;
fin.open("engldict.txt");
if(fin.is_open())
{
bool apos = false;
while(!fin.eof())
{
getline(fin, temp, '\n');
if(temp.length() > 2 && temp.length() < 7)
{
for(unsigned int i = 0; i < temp.length(); i++)
…