C++ code for learning & development