[Solved] Trying to make sense of C++ Struct


all I want to know is what the Store() and ~Store() parts do

They are declaring the struct’s constructor and destructor, respectively.

what the point of the public: part is in the struct

To declare them as publically accessible so outside code can call them.

and also what the part in f.cpp actually does

Implements the body code of the constructor. The code in the .h file is just the declaration.

solved Trying to make sense of C++ Struct