hello,
I have read the tutorial on strutures and I have a simple question.
I would try it out myself but don't have a compiler on hand.
Say I've defined a struture
Now the above has "created" a variable called an_example to access this particular structure.Code:struct example { int x; }; example an_example; //Treating it like a normal variable type an_example.x=33; //How to access it
As my program runs it will need to access different instances of the structure so how to I get it to "create/access an instance of structure?
In in the above code, rather than "an_example" can I actually have an array or something? that way I can access different elements in that array hence different instances of the structure?