I'm having a problem remembering how to get the type of a variable at run time. For example, lets say I have a char* i, and at some point during execution, it is converted to an int. What I want is a function so I can output i's type during execution ( so it will print to the console and I'll see it ).
I did this a few weeks ago, but I can not remember what the function is that does this. I searched around, and found typeid, but either I'm using it wrong, or that wasn't it. If anyone can tell me the function I'm looking for I would really appreciate it.