Prelab10 - Enter Button: Validate the input data. Name must...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CNIT 175 Prelab10 Objectives: Dynamic Array of Structure Redo prelab09. Replace parallel dynamic arrays with a dynamic array of structure. Data Structure: Declare a structure with 2 members for item name and price. Declare a dynamic array of structure. Declare an integer counter to keep track of the last index in array where data has been stored.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Enter Button: Validate the input data. Name must exist, and price must be a number > 0. For valid data: Resize the dynamic array. Store name and price in the array. Clear the input data, and set the focus to txtName. Display Button: Display all the items data stored in array, in two columns in the ListBox....
View Full Document

Ask a homework question - tutors are online