www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/05/00:45:38

From: "Oliver Batchelor" <batch AT netaccess DOT co DOT nz>
Newsgroups: comp.os.msdos.djgpp
Subject: Arrays non integer, uncompatible assignments, Bytes !!! Help
Date: 5 Jul 1998 04:28:42 GMT
Organization: The World's Usenet -- http://www.Supernews.com
Lines: 35
Message-ID: <01bda7cd$fa0e0900$bf0562cb@dialup.voyager.co.nz>
NNTP-Posting-Host: 203.98.5.191
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


Could anyone tell me what the type is for a byte.

BYTE, byte, Byte, b, B  none of these seem to work, BYTE used to work for
me in turbo c. What is it !!   Very frustrating !!

Also I have an array called   (would be bytes but I cant find how to
declare them !)

Int map[100][100] 
BITMAP *img[50]

Now I want to zero the whole array or assign the whole array to something
like 10

for(x=0;x<100;x++) {
for(y=0;y<100;y++) {
Map[x,y]=0;
}}
It tells me that this is an incompatible assignment !

and later when I go to draw the sprites on the screen I have

blit(img[map[x,y]], active_page, .......continues...

It tells me that array subscript is non integer. 

(Im sure this worked in turbo C, both things)

Could someone please tell me what on earth is wrong here ??

thanks,

Oliver Batchelor

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019