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
This is a discussion on Declaring A Global Structure? within the C Programming forums, part of the General Programming Boards category; say for instance i would like to declare a global structure of data type int char float how do i ...
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.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^