AdvMAthProgram written on c++