delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/03/04/01:16:40

From: "Joel_S" <jbs30000 DOT news DOT invalid AT web2news DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Initializing a variable.
Date: Tue, 04 Mar 2003 07:01:52 +0100
Organization: Web2news.com
Message-ID: <17491N712@web2news.com>
References: <17489N841 AT web2news DOT com> <200303040514 DOT h245EnY30379 AT envy DOT delorie DOT com>
MIME-Version: 1.0
NNTP-Posting-Host: 198.81.26.238
X-Complaints-To: abuse AT web2news DOT net
Lines: 14
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Great, thank you very much.
>> unsigned char Map[676] = {"__________________________", /*0*/
>>                           "_                        _", /*1*/
>>                           "_           ____ ___     _", /*2*/
>
> "unsigned char[676]" is a single string of 676 characters.
> What you have given it is 26 strings of 26 characters.
> You want something like this:
>
> unsigned char Map[26][26] = {...};

-- 
Direct access to this group with http://web2news.com
http://web2news.com/?comp.os.msdos.djgpp

- Raw text -


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