swarm-support
[Top][All Lists]
Advanced

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

typedef


From: Claudius Li
Subject: typedef
Date: Mon, 4 May 1998 19:36:36 -0400 (EDT)

I have been having problems compiling a simulation of airline pricing

On running gmake I get the following:
In file included from Airplane.h:2,
                 from Airplane.m:1:
Airline.h:33: parse error before `['


The corresponding file is:
    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  }

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



                                -Claudius Li
                                 address@hidden
                                 410-662-8092
                                 PGP key at http://retina.min.net/~aprentic


                  ==================================
   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]