C++ Function that can receive any data type



IBM's flagship relational database management system

C++ Function that can receive any data type

Postby parulchahar » Mon Jan 19, 2009 10:09 am

Hi,
We need to implement a C++ function which should be a member of a class. The function should take any data type in it's argument. Also, the data type can be anything, int, float, char, or any other class object. If it is a class object we should be able to collect data members of this received argument.
Please let me know how to achieve this functionality.
parulchahar
 
Posts: 3
Joined: Tue Dec 09, 2008 11:19 pm
Has thanked: 0 time
Been thanked: 0 time

Re: C++ Function that can receive any data type

 

Re: C++ Function that can receive any data type

Postby dick scherrer » Mon Jan 19, 2009 10:58 am

Hello,

Please keep in mind that while your requirement is copletely clear to you, it may not be to people here who read it, Please post what forms of inout may be presented to toe function and how you want each operated on. What should be the result of this operation?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to DB2

 


  • Related topics
    Replies
    Views
    Last post