Add hpp and cpp user code example in documentation.