Page 1 of 1

C++ Function that can receive any data type

PostPosted: Mon Jan 19, 2009 10:09 am
by parulchahar
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.

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

PostPosted: Mon Jan 19, 2009 10:58 am
by dick scherrer
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?