cpp code for A1010