Jul-02-2019, 08:23 PM
(This post was last modified: Jul-02-2019, 08:23 PM by viktoria_linn.)
Hi!
I'm a new programmer and new to the forum :) and right now I am working on a very simple cash register program. I was wondering if anyone has got any tips on how to store different types of products from the store in the program.
I want there to also be an option in the program to make a new item.
Is it easiest to store them in a list , or should each item have their own variable?
If the second option is preferable, is there a way to customize a variable as the user of the program when adding a new product?
Sorry if I'm being unclear, just looking for a guideline! :)
or maybe if there already is a similar thread you can just direct me there and I'll delete this one!
I'm a new programmer and new to the forum :) and right now I am working on a very simple cash register program. I was wondering if anyone has got any tips on how to store different types of products from the store in the program.
I want there to also be an option in the program to make a new item.
Is it easiest to store them in a list , or should each item have their own variable?
If the second option is preferable, is there a way to customize a variable as the user of the program when adding a new product?
Sorry if I'm being unclear, just looking for a guideline! :)
or maybe if there already is a similar thread you can just direct me there and I'll delete this one!