Mail Archives: djgpp/1997/03/01/23:14:42
From: | "John M. Aldrich" <fighteer AT cs DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: DJGPP Structs
|
Date: | Sat, 01 Mar 1997 22:12:04 -0800
|
Organization: | Two pounds of chaos and a pinch of salt
|
Lines: | 21
|
Message-ID: | <33191A34.BC9@cs.com>
|
References: | <01bc2673$a4dbe420$8e54dec2 AT satan>
|
Reply-To: | fighteer AT cs DOT com
|
NNTP-Posting-Host: | ppp206.cs.com
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Iain Buchanan wrote:
>
> And an array full of pointers to such structres:
> defPt *View[25][25];
>
> When I try and do this.... ("x" and "y" are of type int, and each go from
> 0-24)
> defPt *View[x][y] = calloc(1, sizeof(defPt));
Excuse me, but I fail to see the purpose of this line. Are you really
trying to redeclare 'View' each pass through the loop? If not, then you
have a major syntax error here. Try just:
View[x][y] = (defPt *) calloc( 1, sizeof(defPt) );
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| Descent 2: The Infinite Abyss - The greatest Internet game of all |
| time just got better! This time, you're going all the way down...|
---------------------------------------------------------------------
- Raw text -