|
-
November 7th, 2002, 04:39 AM
#1
a basic c++ question
class rational {
public:
rational(int numerator = 0, int denominator = 1);
int numerator() const;
int denominator() const;
};
who can tell me the meaning of this line?
//rational(int numerator = 0, int denominator = 1);
I know it's construct function. I want to know the meaning of " int numerator=0".
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|