方法一:
Convert strings to double (atof), integer (atoi,_atoi64), or long (atol).
doubleatof(constchar*string);
intatoi(constchar*string);
__int64 _atoi64(constchar*string);
longatol(constchar*string);
方法二:
1.string转化为double
#include <sstream>
2.double转换为string
#include <sstream>