Queues & Stacks
I would like to know how I can add items to a queue each time a user clicks a new invoice. I have an Invoice class which has created objects for the customer name, order total, item count and discount amount. When I record the info for one invoice the data in the queue is added. I would like to know how to add this data on an accumulation basis.
InvoiceQueue.Enqueue(Invoice.InvoiceDate)
InvoiceQueue.Enqueue(Invoice.CustomerName)
InvoiceQueue.Enqueue(Invoice.OrderTotal)
InvoiceQueue.Enqueue(Invoice.ItemCount)
InvoiceQueue.Enqueue(Invoice.DiscountAmount)
|