Furthermore: You haven't defined functions like GetCarbohydrates() and the other getters.
I think you misunderstand inheritance. class almond: public Nut implies that everything part of Nut is also part of almond. In other words: type exists twice in almond (type int Nut is just not accessible in case of the variable type almond)
oh i see.. now is error about too many characters in constant
1 2 3 4 5 6 7
testing.cpp(16): error C2015: too many characters in constant
testing.cpp(17): error C2015: too many characters in constant
testing.cpp(19): error C2015: too many characters in constant
testing.cpp(20): error C2015: too many characters in constant
testing.cpp(21): error C2015: too many characters in constant
testing.cpp(22): error C2015: too many characters in constant
testing.cpp(24): error C2039: 'SetCarbohydrates' : is not a member of 'almond_butter'
testing.cpp(25): error C2039: 'SetCarbohydrates' : is not a member of 'almond_milk'
testing.cpp(26): error C2039: 'SetCarbohydrates' : is not a member of 'black_walnut'