You're welcome. I'm still confused about using typedef for a structure. The structure a IS it's own variable type: a a1, a2, a3;// 3 instances of the variable type a are declared here
Could you show an example where the typedef is helpful?
This is the C++ way of doing it, both ways are valid in C++ because compilers need to be backward compatible with C. However typically, you ignore the second typename at the end of the C++ style struct definition...