TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: STEVE WESTCOT
from: CAMERON CLARK
date: 1997-06-04 20:49:00
subject: Re: Array size too big.

SW> struct maptile {
SW>    char         type; //What the map tile looks like
SW>    unsigned int x, y; //Map tile coordinates
SW>    int          attr; //Map Attributes...specifics not listed
SW>    char         special[81]; //Special field for map attributes
SW>    char         text[341]; //Map tile Description
SW>    int          ansifg, ansibg, ansiattr; //Ansi colors and attributes
SW> }
SW> int main(void) {
SW> 
SW>    maptile      local_map[9][21]; /* Size of Display area plus 1 tile 
buffe
SW>                                      on each side of Display */
SW>    return 0;
SW> }
    try "maptile* local_map[9][21];"
    then allocate a new maptile for each 0-8x0-20 cells
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.