Is it good to use typedef?

typedef is necessary for many template metaprogramming tasks — whenever a class is treated as a “compile-time type function”, a typedef is used as a “compile-time type value” to obtain the resulting type. … Note that template metaprogramming is not commonly used outside of library development.

Read more

How do you declare a structure variable?

You begin a structure declaration with the Structure Statement, and you end it with the End Structure statement . Between these two statements you must declare at least one element. The elements can be of any data type, but at least one must be either a nonshared variable or a nonshared, noncustom event.

Read more