www.delorie.com/archives/browse.cgi | search |
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> <iN_p2.188$be7 DOT 812 AT news DOT get2net DOT dk> <789uso$a7o$1 AT antares DOT lu DOT erisoft DOT se> |
Subject: | Re: Map file |
Lines: | 23 |
X-Newsreader: | Microsoft Outlook Express 4.72.2106.4 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.2106.4 |
Message-ID: | <k52q2.241$be7.1198@news.get2net.dk> |
Date: | Fri, 22 Jan 1999 17:50:27 +0100 |
NNTP-Posting-Host: | 195.82.204.219 |
X-Complaints-To: | abuse AT get2 DOT net |
X-Trace: | news.get2net.dk 917024208 195.82.204.219 (Fri, 22 Jan 1999 17:56:48 MET DST) |
NNTP-Posting-Date: | Fri, 22 Jan 1999 17:56:48 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 |
Ok, now i have a code like this: #include <stdio.h> int map[100][100]={0,0,1,0,0,2,0,1,1,0.........}; int main { FILE *fp; fp=fopen("map.dat","w"); fwrite(map,90,90,fp); fclose(fp); return 0; } but what if i want more than one integer stored in a file i have 3 map integers: map, item and walk. how should i then write the code? should i make a structure? Anders
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |