Re: Constructor problem
Thanks Mark,
I'm trying to write a class (Distance.h file and a Distance.cpp) file that
will accept two arguments, one being a value and the other being a unit (ie
km, m, or cm). I'm trying to write the class to include overloads for ==,
!=, <, <=, > and >= which will return a boolean value. As well as overloads
of + and -. Obviously the overloads will only work on multimple instances,
ie when I enter more than a single value.
What I've written so far is included within this thread.
Thanks
Thanks Mark,
I'm trying to write a class (Distance.h file and a Distance.cpp) file that
will accept two arguments, one being a value and the other being a unit (ie
km, m, or cm). I'm trying to write the class to include overloads for ==,
!=, <, <=, > and >= which will return a boolean value. As well as overloads
of + and -. Obviously the overloads will only work on multimple instances,
ie when I enter more than a single value.
What I've written so far is included within this thread.
Thanks
Comment