added my code to cp.cpp
Merge pull request #2 from ziyaemanet/master

added my code to cp.cpp