A struct is the same as a class in C++ except for the default access specifier, so find any class, change the word class to struct, and add "public:" to the first line of the class.
There you go, you have a struct and its implementation.
(Note that if the class derives from another class and doesn't say public, then changing it to a struct changes it to public derivation instead of private).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.