I am new to c ++ and what I am trying to achieve is cin a value and make the overloaded functions determine the type of value . Here is what I have so far. I just need some guidance in the right direction please.
its going to be tricky even so. It may be that all you can do is read it as a string and run some sort of determination code over it. The typid stuff was meant for internal to program use... not for user input really.
At the end of the day, there are only 4 or so basic types. Its an integer type, a floating point type, a string type, a Boolean type, an array of one of those, and .. what else? Not a lot from the user's perspective, unless the user is strangely aware of your classes etc.