updated cp.cpp
Merge pull request #5 from aorti017/master

updated cp.cpp