We don't have samples, per se, but you can work with the translate API through REST, as described
here. Now I have to be honest, I haven't done REST in C++, but looking into it, I found that there's an
SDK to do just that, complete with a tutorial (which I've linked you).
I hope that's enough to get you started.