Hi,
I was looking through the Internet for solutions on how to
insert structures into an array. I have worked this out and all is
fine. However, although my code works, can you see any problems
with the way I have done it?
I basically create an array and then append structures into
it. However, I needed my structures to have the same name. So, I
keep creating a new structure with that name (cfc_info) and assign
to it two parts (type and message).
Then, I can loop the array and access all the structures in
the same way, without having to know the name of the actual
structures themselves.
Let me just stress this...it does actually do what I
want...but I'm wondering if there could be problems with creating
structures that have the same name this way? I have not had any
errors etc but it seems very odd that I can do it this way.
If anyone has a better suggestion and explanations etc it'd
be much appreciated.
Thanks,
Mikey.