I'm trying to make a class that is a queue of more then one type of object. I can add the diff types of objects using function prototyping but when I'm ready to display them, how can I tell one type from another b4 I assign a pointer to the address that is stored in the queue (there is no class inheritance involved so I can't just use the base class name -- or is there something similar for non inherited functions?). Anyways, it seems to me that I'd have to have sorta of a buffer in the queue that is read, and then in it has info on whether or not what it points to is one thing or another and branch somewhere accordingly.
Bout to go to work so I haven't had time to test yet but let me know what you think. I'm a newbie c++ programmer so I'm probably missing something obvious that will be easy so do feel bad about pointing out something that seems simple/simple to you.
Bout to go to work so I haven't had time to test yet but let me know what you think. I'm a newbie c++ programmer so I'm probably missing something obvious that will be easy so do feel bad about pointing out something that seems simple/simple to you.