The compiler is return an error on the derived constructor, saying the "sh_nm" was not declared in this scope. I don't understand, did I call the case constructor wrong?
family_shopper::family_shopper(
int yrs_a_mbr,
double av_mnth_prchs,
char *f_sh_nm,
double fam_disc
)
:Shopper(
yrs_a_mbr,
av_mnth_prchs,
sh_nm //¿where is this defined? you have asked for f_sh_nm, ¿did you mean that?
)
{
Also, read the warnings, when you say that you are going to return something from a function, then do it.