how to work with the raspberry pi ai hat+ in c++?

Have a look at the following repo with examples for C++.

GitHub - Hailo-Application-Code-Examples - cpp