added cp.cpp
Merge pull request #1 from Liniarc/master

added cp.cpp