Animations in C++ work different than in Python.
To load an animation, you need to load it as separate model and bind it to the model. The auto_bind function gives you an AnimControlCollection, where you can extract your AnimControls from. You can use these to control your animation.
For example, if you want fine-control of the animation in the Hello World example:
//load our panda
NodePath pandaActor = window->load_model(framework.get_models(),"panda-model");
//load the walk animation
auto_bind(pandaActor.node(), panda_anims, 0);
//now you can do with _panda_anims whatever you want, e.g.:
//where panda_walk_character is the name of the animation.
I’m currently in the process of creating a tutorial that will explain these things some more.
Hope this helps.