add version number to a c++ fun