Cosine Similarity

I am new to C++. Trying to understand this program which calculates C++. Can anyone help me to understand this program? Link - http://www.cplusplus.com/forum/general/99944/

With this program what are the files do I need to calculate cosine similarity? Do i need to have Couple documents file? Please help. Thanks.
Topic archived. No new replies allowed.