how to get appversion?

when i use c++ code , how to get appversion?