I was wondering how to store the value of an output to a function so that I can view that output anytime. For example, in a movie reservation (which is my current project), how can I save/store the output of the ticket information ( serial, seat numbers, and price ) to a function so that I can view it anytime.
Each ticket is a structure containing its serial, seat number and price. As each ticket is created, store it in a vector. To quiz ticket data, look at the vector.