Adding cp.cpp
Merge pull request #1 from lpeng003/master

Adding cp.cpp