algorithms etc... book: http://algs4.cs.princeton.edu/home/ word_freq.cpp usage build $ g++ -o main main.cpp -std=c++0x -g run $ cat word_freq_test.txt | ./main 3 or $ ./main 3 < word_freq_test.txt