Announcement

Collapse
No announcement yet.

forward deklaration

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • forward deklaration

    Hallo!
    ich habe hier ein Neuronales Netz und die folgende Deklaration will mein Borland einfach nicht akzeptieren.

    /* Forward Declaration for all unit types */
    static UnitType Units[89];
    /* Sources definition section */
    static pUnit Sources[] = {Units+1,Units
    +2,Units+3,Units+4,Units+5,...};

    /* Weigths definition section */
    static float Weights[] = {1.082800,
    1.464760,-3.074940,-2.054260,3.203290,...};

    /* unit definition section */
    static UnitType Units[89]=
    {
    { 0.0, 0.0, 0, NULL , NULL },
    { /* unit 1 (Old: 1) */
    0.0, 1.000000, 0,
    &Sources[0] ,
    &Weights[0] ,
    },
    { /* unit 2 (Old: 2) */
    0.0, 0.998030, 0,
    &Sources[0] ,
    &Weights[0] ,
    },.................. };

    Warum erkennt der Compiler die erste Deklaration von Units nicht als forward deklaration, bzw wie könnte ich dieses Problem elegant umgehen?
    Bitte so schnell wie möglich weiter helfen, wäre sehr wichtig!
    Vielen Dank!
Working...
X