in the pdf all the code are in java language so can i get in c++ code
Editorial - Range Xor
Try converting it yourself, you will get better at reading the code and understanding it. Main structure of code will remain same for both languages, only basic in-built functions change. You can easily understand the code as algorithm is implemented the same way as it will be in c++. Ignore those in-built functions and try to understand the way algo is implemented.