c cpp code samples