Because of the default value for y that constructor can convert an int to a Rational.Code:Rational(int x = 0, int y = 1)
Kurt
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Threaded View
|
Click Here to Expand Forum to Full Width |