Finding GCF

This is a discussion on Finding GCF within the C++ Programming forums, part of the General Programming Boards category; Hello, Does anyone have code that will find the GCF of 2 integers? I'm trying to write a fraction-based calculator ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    17

    Finding GCF

    Hello,

    Does anyone have code that will find the GCF of 2 integers? I'm trying to write a fraction-based calculator and am having trouble developing an alg. for finding GCF.

    Thx,

    cpp4ever
    ------------------------------------------
    Normally I'd put something clever, but that isn't the point of being here now is it?

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    155
    try:

    searching the board: There have been good solutions posted in the past. They may still be there.

    searching the internet: I'm sure you can find several algorhythms that you can convert to C++.

    writing your own and asking for help if you get stuck;

  3. #3
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    become a good programmer and you will answer your own question. Not to make you mad or anything

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. tools for finding memory leaks
    By stanlvw in forum C++ Programming
    Replies: 4
    Last Post: 04-03-2009, 12:41 PM
  2. Help with finding modal value
    By packman in forum C Programming
    Replies: 3
    Last Post: 04-30-2008, 07:18 PM
  3. Finding primes
    By starripper in forum C++ Programming
    Replies: 19
    Last Post: 01-14-2006, 04:17 PM
  4. Finding URLS
    By johnchain in forum C Programming
    Replies: 5
    Last Post: 10-07-2005, 08:56 AM
  5. MFC :: Finding Child Window of a CWnd* Object?
    By SyntaxBubble in forum Windows Programming
    Replies: 2
    Last Post: 09-06-2003, 10:06 AM

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