How to convert a blueprint to a C++ file ?

There is no automation tool for this process. You need to look into unreal documentation to find the equivalent c++ functions to nodes.

If you double click a bp node it will open up c++ and sometimes you might see what is going on in the cpp implementation, but many native nodes are for instance parts of various kismet libraries (e.g. UKismetMathLibrary) with extra operations.