infile.open("phrases.txt") wins = 0; infile >> word; while (not done) { cout << "Enter a letter" cin >> letter if word.find(letter)!= str::npos cout << "Your letter is correct" ... }