Click here to Skip to main content
15,895,142 members
Articles / Programming Languages / C++

A function that detects the parameter type, value, and the name and return value of another function?

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
3 Oct 2012CPOL 2.1K  
I am wondering if how I can write a function to detect the parameter type, value and function name and return value of another function.For example. I have a function:double average(string datapath, double *data, int numofinput){ // some code here}I want to have another...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
3 Oct 2012psychic6000
try creating a (class) string variable str, and everytime a function is called, it updates the data in str (either overwrite it or just add), at the end, cout the value of str.(i think you are just using it to perform debuging...)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions