/* Lecture code 12.1
 *
 * A code snippet that given an Evil Hangman lexicon (set<string>), removes all words that contain the specified letter.
 */

#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <functional>
using namespace std;

const int NUM_INTS = 10000;

bool ContainsLetter(string word, char letter)
{
	return word.find(letter) != string::npos;
}

int main()
{
	set<string> dictionary; // Fill this in somehow
	char userLetterGuess;   // Also fill this in
	
	/* See the algorithms handout for more information on remove_if */
	dictionary.erase(remove_if(dictionary.begin(), dictionary.end(), bind2nd(ptr_fun(ContainsLetter), userLetterGuess)), dictionary.end());
	return 0;
}