A C++ program showing an array of structs.
Not what you're looking for?
I have to write an array of structs. The Program will display a menu allowing the user to:
Add data to a struct
Print the data of one struct
List the data of all structs
Quit the menu.
I have to define a struct that contains the following information:
offered price
Name of the fruit
Expiration Date
Name of Company
Quantity desired
The Attachment contains the program I started doing, but I got Stock.
Purchase this Solution
Solution Summary
This solution provides a complete C++ program that demonstrates how to create and use an array of struct data structures.
Solution Preview
This solution shows how to use an array of structs in a C++ program.
The program uses a global variable for holding the list of structs.
This is done in order to avoid passing the structs using pointers
(which is a more advanced topic).
Two support functions are provide. The read_fruit() ...
Purchase this Solution
Free BrainMass Quizzes
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
C# variables and classes
This quiz contains questions about C# classes and variables.
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.