J
J Peterman
I am trying to program a couple classes. One is called PositiveInteger and
is supposed to just store a positive integer. The second class is called
Circle, and is meant to describe a circle. Circle is meant to use
PositiveInteger when describing the circle's radius. Sorry if haven't
described it properly.
Could someone take a look at my code and tell me where I am going wrong, and
why it keeps giving me this error
error C2533: 'Circle::Circle' : constructors not allowed a return type
Thanks.
I'll post the 4 code files as replies to this message.
is supposed to just store a positive integer. The second class is called
Circle, and is meant to describe a circle. Circle is meant to use
PositiveInteger when describing the circle's radius. Sorry if haven't
described it properly.
Could someone take a look at my code and tell me where I am going wrong, and
why it keeps giving me this error
error C2533: 'Circle::Circle' : constructors not allowed a return type
Thanks.
I'll post the 4 code files as replies to this message.