Update factorial.cpp

I added to "$" to your functions, this should change the values of m and m through the function. I also rearranged your functions so they're not sitting above the main, industry standard....and added to prototypes to the top. bet.
Merge pull request #1 from TheAlphaOmega/patch-1

Update factorial.cpp
Update factorial.cpp

I added some comments and an example. I'm not sure how this could exit the recursion though.
Merge pull request #2 from AdamDS/changes_Adam

Changes adam