Storing Value

closed account (48CM4iN6)
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.
Do you mean whilst the program is still running, or do you mean in the future when the program has been halted and then started again?
closed account (48CM4iN6)
when the program is still running .
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.
closed account (48CM4iN6)
thank you!
Topic archived. No new replies allowed.