Cosine Similarity

I am new to C++. Trying to understand this program which calculates C++. Can anyone help me to understand this program? Link -

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.