add .cpp

*fix class defination problem
*fix operator overloading name
*add .cpp
*done point class function