I feel stupid. Could you show me how to do that? I can't seem to get the pointers to work.
You can't do what you are suggesting like that. You would have to create something like an std::map and map the names to the people.
By the way, your structure code is completely wrong.
Thanks for the help with structures and pointers; I learned it from a fellow amateur programmer.
mynameinc
Last edited on