Access bones in c++ code

I have been doing this recently with quaternions to control bone rotation, but the first step, how to access the bones in my skeleton tree in c++ code, I can not achieve, I would like to ask how to solve this problem, very urgent.thank you