> "error: cannot call member function 'float A::a_Percent(std::__cxx11::string)' without object"
a member function should use or modify the internal state of the caller object. If you don't give a damn about the state of the object, then it shouldn't be a member function, you may make it static
a_Percent() should not be a member function, but static of free function.