Creating a class?

This is a discussion on Creating a class? within the C++ Programming forums, part of the General Programming Boards category; Can someone point me in the direction where I can find an example of a class that can reduce fractions? ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    2

    Creating a class?

    Can someone point me in the direction where I can find an example of a class that can reduce fractions? Please Help!

  2. #2
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    see if you can implement it yourself as a function or a block of code first, then integrate it into a class... it's just a matter of checking for the lcd of the numerator and denominator...
    hasafraggin shizigishin oppashigger...

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    2
    Thanx! I will see how it goes.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. matrix class
    By shuo in forum C++ Programming
    Replies: 2
    Last Post: 07-13-2007, 01:03 AM
  3. Creating threads from a class
    By Niara in forum C++ Programming
    Replies: 2
    Last Post: 06-02-2006, 03:52 PM
  4. My Window Class
    By Epo in forum Game Programming
    Replies: 2
    Last Post: 07-10-2005, 02:33 PM
  5. Creating a string class
    By incognito in forum C++ Programming
    Replies: 2
    Last Post: 01-19-2002, 04:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21