say for instance i would like to declare a global structure of data type int char float how do i do that? could u demonstrate using variables and defining the structure for me plz
Printable View
say for instance i would like to declare a global structure of data type int char float how do i do that? could u demonstrate using variables and defining the structure for me plz
A struct is a blueprint. A blueprint can be used wherever you have access to that blueprint.
So create the blueprint in a header, then include that header wherever you need to use the blueprint.