Math Is Hard
Feb3-05, 11:53 AM
Is anyone here using Visual C++ .NET?
I have a line of code that works fine in MSVC++ v6, but I am getting an error in MSVC++ .NET. :mad: :cry: :cry:
Here's the line:
expo = (log(num))/(log(10));
and the error message I get:
error C2668: 'log': ambiguous call to overloaded function
expo is a type int variable. so is num.
I am using the cmath header:
#include <cmath>
Thanks for any help!
I have a line of code that works fine in MSVC++ v6, but I am getting an error in MSVC++ .NET. :mad: :cry: :cry:
Here's the line:
expo = (log(num))/(log(10));
and the error message I get:
error C2668: 'log': ambiguous call to overloaded function
expo is a type int variable. so is num.
I am using the cmath header:
#include <cmath>
Thanks for any help!