cpp code of mooc