I am trying to make a function by getting an enumeration as one of its parameters. I had an enumeration as global, but for some reason my other files could not change the enumeration. so I was wondering how you set enum as an argument to a function like
function(enum AnEnum eee);
Or is there a better way to solve the above problem?
I paraphrase my question well: I basically have numerous files, and I want all of them to have access to my enumeration and to be able to change the state of this enumeration, as well as most of the files that should have access to it. are in the classroom. The way I tried to fix this was to pass enum to a function that was supposed to access it, I could not figure out how to make the function of getting an enumeration as one of my arguments.
source
share