added a c/s example for c++