c++ - Structure prototype? -
How can I destroy a straitjacket in a separate file? Function prototypes in header files put me with the function can do eg. Included File.h and file.cpp such instructions included in the source file with the function body and then the main directions in a file # using "file.h". Can someone give a simple example of doing the same thing with a structure like below? I am using dev-c ++.
struct person {string name; Double age; Bull sex; };
Simply stated
struct person;
This is called C ++, Strkkts classes are public by default with all members.
Comments
Post a Comment