delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/03/03/23:45:08.1

From: "Joel_S" <jbs30000 DOT news DOT invalid AT web2news DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Initializing a variable.
Date: Tue, 04 Mar 2003 05:40:41 +0100
Organization: Web2news.com
Message-ID: <17489N841@web2news.com>
MIME-Version: 1.0
NNTP-Posting-Host: 198.81.26.238
X-Complaints-To: abuse AT web2news DOT net
Lines: 37
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Ok, why do I get this error message:
 raycast/Map.C(28) Error: invalid conversion from `const char*' to
`unsigned char'
26 times for the bottom line? (each row is 26 characters long).
Thanks.
/*                                   1111111111222222      */
/*                         01234567890123456789012345      */
unsigned char Map[676] = {"__________________________", /*0*/
                          "_                        _", /*1*/
                          "_           ____ ___     _", /*2*/
                          "_     _     _        __  _", /*3*/
                          "_    _ _              _  _", /*4*/
                          "_   _   _   _   ___      _", /*5*/
                          "_  _     _  _ ___ ___    _", /*6*/
                          "_           _ _     _    _", /*7*/
                          "_           _ _     _    _", /*8*/
                          "_  ________ _ ___ ___  _ _", /*9*/
                          "_  _      _   _          _", /*10*/
                          "_  _ ____ _   _   _  _ _ _", /*11*/
                          "_  _ _  _ _   _  ___     _", /*12*/
                          "_  _ _  _ _   _   _      _", /*13*/
                          "_  _ _  _ _              _", /*14*/
                          "_  _ __ _ _   _    ____  _", /*15*/
                          "_  _    _ ___     __  _  _", /*16*/
                          "_  ______   _ _    _  _  _", /*17*/
                          "_           _ _   __  _  _", /*18*/
                          "_ ___       _ _    _  _  _", /*19*/
                          "_   ______  _ _   __  _  _", /*20*/
                          "_        _  _ _    _  _  _", /*21*/
                          "_ _      _  _      _  _  _", /*22*/
                          "_ ________    ______ __  _", /*23*/
                          "_                        _", /*24*/
                          "__________________________"};/*25*/

-- 
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