added a c/s example for c++
Merge pull request #418 from taozle/master

added a c/s example for c++