Mail Archives: djgpp/1999/01/22/22:36:41
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 -