line 2 in your in the cpp file should be
fraction fraction::addFractions(fraction two)
The reason it was not working they way you had it was because you did not have the return type in the deceleration.
NathanOliver
Veteran Poster
1,084 posts since Apr 2009
Reputation Points: 215
Solved Threads: 189
It should be
fraction fraction::addFractions(fraction two)
{
//...
}
gerard4143
Nearly a Posting Maven
2,272 posts since Jan 2008
Reputation Points: 512
Solved Threads: 387
Where's your constructor that accepts three integers?
gerard4143
Nearly a Posting Maven
2,272 posts since Jan 2008
Reputation Points: 512
Solved Threads: 387