In C, structs contain data. The data may be basic types (int, float, double), pointers, enumerated types, and other structs.

Your code has the structs having member functions. Such things are...