Click here to Skip to main content
15,886,873 members
Articles / Programming Languages / C++

Using C++ operator overloading to make a simple fraction class

Rate me:
Please Sign up or sign in to vote.
4.47/5 (12 votes)
9 May 2003CPOL1 min read 208.3K   1.4K   23  
Shows a sample of operator overloading in C++

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
I started learning C and 68K assembly language on an Atari ST around 1985 or so using the Mark Williams compiler. I was instantly hooked.

My favorite languages are: C/C++, C#, Ruby, and Python.

My first PC clone was a 386SX-25MHz with 4MB of RAM. OMG | :OMG:

Comments and Discussions