swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: typedef


From: Marcus G. Daniels
Subject: Re: typedef
Date: 04 May 1998 16:23:13 -0700

>>>>> "CL" == Claudius Li <address@hidden> writes:

CL> We had struct flight typedef'ed before but it didn't seeem to
CL> understand typedef. Any ideas?

I assume this is a part of larger structure?  If so, why not 
put schedule[MAXPLANES][MAXFLIGHTS] right after the first "}" 
(or else put a semicolon there).

    23    struct flight {
    24      City* destination;
    25      float pricePerDistance;
    26        /* when we depart from this city, we use this to calculate
the cos
    27      int waitTime;
    28        /* how much time to wait between flight */
    29    }
    30  
    31    /*  struct flight[MAXFLIGHTS] flightPlan; */
    32  
    33    struct flight [MAXPLANES][MAXFLIGHTS] schedule;
    34  }


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]