www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/22/22:36:41

From: "ANDERS PEDERSEN" <anders_p AT get2net DOT dk>
Newsgroups: comp.os.msdos.djgpp
References: <hIJp2.399$477 DOT 691 AT news DOT get2net DOT dk> <789k2d$590$2 AT antares DOT lu DOT erisoft DOT se>
Subject: Re: Map file
Lines: 45
X-Newsreader: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Message-ID: <iN_p2.188$be7.812@news.get2net.dk>
Date: Fri, 22 Jan 1999 14:04:55 +0100
NNTP-Posting-Host: 129.142.197.173
X-Complaints-To: abuse AT get2 DOT net
X-Trace: news.get2net.dk 917010638 129.142.197.173 (Fri, 22 Jan 1999 14:10:38 MET DST)
NNTP-Posting-Date: Fri, 22 Jan 1999 14:10:38 MET DST
Organization: get2net Internet Kunde
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Martin Stromberg skrev i meddelelsen <789k2d$590$2 AT antares DOT lu DOT erisoft DOT se>...
>ANDERS PEDERSEN (anders_p AT get2net DOT dk) wrote:
>: Hi!
>: I'm making a crpg using Djgpp and Allegro. I want to create a map-file
>: that store the map information, but I don't know how.
>: Right now i'm using something like:
>
>: int map[100][100]{0,0,0,0,0,.....,}
>                   ^
>Isn't a "=" missing here?

yes that's right

>
>If you just want everything set to zero "= {0};" should the job.


Oh thanx i didn't know that... but anyway i don't think i can use this
information for my crpg

>: Does anybody know how to create a map-file that i can read from, and
write
>: to. I don't wan't a file you can edit in a text editor.
>
>Fill in your structure with a C program, then dump it to a file with
>fwrite(). Later (in your real program) read it in with fread().
>

what header file? how do i use it?

>And any file can be editted with a decent text editor (emacs).
>

I know, but i don't want some text like: "0,1,0,0,0,1,0,0,0,0,0....."
I wan't something like: "!"#¤%&/([]}=+?...." that you can't just edit.

>
>Right,
>
> MartinS

Anders


- Raw text -


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