Answer to Question #21132 in C++ for users
void calc(int i,int j)
void calc(int i,float j)
2. Add this line before class declaration:
using namespace std;
3. The calc method is called with parameters of type (int, double)
and compiler doesn't know what method to choose: (int, int) or (int, float).
So the second parameter has to be either int or float.
Since you need to pass the floating point value you should use the following method call:
You're welcome. We are glad to be helpful.
If you really liked our service please press like-button beside answer field. Thank you!
Thanks 4 d solution!!!