Thread: struct

  1. #1
    Registered User
    Join Date
    Sep 2002

    Question struct

    How do i define a struct function type as an aggregate of two doubles: a numerator and a denomenator?

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    do u mean something like this....

    struct fraction
    double numerator;
    double demoninator;
    double Agg( struct fraction* frac)
    return frac->numerator + frac->denominator;
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 12-03-2008, 02:10 AM
  2. Global Variables
    By Taka in forum C Programming
    Replies: 34
    Last Post: 11-02-2007, 03:25 AM
  3. Replies: 10
    Last Post: 05-18-2006, 11:23 PM
  4. What's wrong with my search program?
    By sherwi in forum C Programming
    Replies: 5
    Last Post: 04-28-2006, 09:57 AM
  5. Tutorial review
    By Prelude in forum A Brief History of
    Replies: 11
    Last Post: 03-22-2004, 08:40 PM
Website Security Test