How do I store and switch over preferences?
- by kunjaan
I want to store some user preferences Would Enum be a good datastructure to store them? If so, how do I do it? This is the final usage of the datastructure.
main(){
int my_val = PREFERENCES.BLACK;
switch(PREFERENCES){
case BLACK:
...
}