C/C++

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
Home » Tech Support »» C/C++
  • array in include

    13 answers - 539 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

    Hi,
    I've an array in an include that is used everywhere in the project.
    So to avoid the problem of declaration I made the following solution:
    ifndef __UNWALKABLETILES__
    #define __UNWALKABLETILES__
    #define UNWALKABLETILES 16 /*!< Number of elements in UnwalkableTiles
    array. */
    /** List of unwalkable tiles. */
    char rgUnwalkableTiles[] =
    {
    18, 19, 20, 21, 22, 23, 24, 25, 55, 56, 57, 60, 61, 62, 63, 64
    };
    #endif
    But it doesn't works.
    Why?
    Tnx

Re: array in include


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 2 =
SPONSORED
QUESTION

SPONSORED
EMSDN