C++ demontration