that worked... i put
cat frisky;
frisky.itsAge = x;
AFTER the cin >> x; and it worked perfectly. thanks for your help and patience
Type: Posts; User: ronin_spirit
that worked... i put
cat frisky;
frisky.itsAge = x;
AFTER the cin >> x; and it worked perfectly. thanks for your help and patience
i thought that's what i was doing by declaring "frisky.itsAge = x;" i guess i am not understanding what you meant. pardon my density....but is there another way you could put it?
ok, i'm new to c++ and trying to learn it on my own. i've been doing not that bad...until i reached the point of classes. i copied the code from "teach yourself c++ in 21 days" and decided to...