initial some demo cpp code.