Recent content by cikon

  1. C

    C/C++ Function overload resolution with ambiguous input types in C++

    im sorry for not making it clear. act i want to ask, what is the data type of unknown parameter. like q. it can be either int or double. and we do not know what is the type will be inserted by the user.
  2. C

    C/C++ Function overload resolution with ambiguous input types in C++

    Helo, im doing overloading function. example class a { ... example(int a) ... example(double b) }; int main() { a. b; count << "Enter value"; cin>>q; b.example(q) } what is q's data type ?