C++ Sample Codes