Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding all data for a specific item

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Help would be great.

I have created a structure that has different items included.

I want to be able to find all info for a specific item and sort all the data if necessary.

It's a cooking menu.

struct
{
char meatType;
char Recipe;
char cookMethod;
char cookTime;
char amountFeeds;
} cookBook;

/* I want to be able to find all char.meatType that were stored that contained Pork, also I would like to sort them by meat type. Example

Chicken
Beef
Fish
Pork

Not much good with structure or class methods. Just recently bought the studio and am still learning.

Or should I use some other means than C++ ??
*/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top