View Single Post
Old Mar 26th, 2008, 6:26 AM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,435
Rep Power: 8 Ooble is on a distinguished road
Re: I kind of need help on my program

If you mean you want them to name each block of information (that you store in a struct) so they can find it later, you can use a map to do it:
struct blockOfInfo oldInfo, newInfo;

std:map<string, struct blockOfInfo> info;
info["name"] = oldInfo;
newInfo = info["name"];

Cprogramming.com has a good tutorial on maps.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote