[Solved] What is this header error caused by? [closed]
I’m going to go out on a limb and guess that your class is defined something like this: class Sales_item { std::string isbn; } Classes and structs have public, private, and protected labels for their member data, and classes have their members labelled as private by default. You should change it to read: class Sales_item … Read more