Okay so, I wanted to see if my strncpy function worked correctly but I can't check it since the compiler is giving me an error that says:
cout<<inv.items[0];
"no match for 'operator<<' in 'std::cout << inv.invType::items[0]' "
Then it goes on saying "note" and then a bunch of gibberish I don't know how to read."Candidates are: [list candidates]"
You're trying to print an itemType. cout doesn't know how to print that. You have to give it something it knows how to print. In this case, that is likely the productName (which is a string -- something cout will have no problems with):
Oh, so it's not possible to print out a whole structure at once? I was attempting to print out the results of the whole item structure but is the only way you can do it by individually calling it?