I'm creating a program that converts binary to decimal. For some reason the pow function isn't working... It keeps saying "more than one instance of overloaded function "pow" matches the argument list:"
There's one that takes two float objects as inputs, and one that takes two double objects, and one that takes two long double objects.
So let's see which one you're trying to use; you're passing in 2, which is an int, and len-i-1, which is an int. So you're trying to pass in two int objects.
There isn't one that takes two int objects. The compiler is complaining because it doesn't know which function you want to use. It knows how to change an int to a float or a double or a long double, but it has a choice of three options and no idea which one you mean.
So, how would I go about configuring this to work? I really have no idea =(
Thank you for making that clear though.
EDIT: So I changed it up a bit and put len as a double and it ended up not giving me an error, but I thought passing "2" was an int so why is it working?