string header file is required.
cmath is preferred to math.h