delorie.com/archives/browse.cgi | search |
From: | "Damian Yerrick" <web DOT poison AT pineight DOT 8m DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Please help...matrix problem with Allegro |
Date: | Fri, 8 Oct 1999 16:20:04 -0500 |
Organization: | Rose-Hulman Institute of Technology |
Lines: | 18 |
Message-ID: | <7tln9o$6ue$1@solomon.cs.rose-hulman.edu> |
References: | <DB85AFBE7C0DD311BF260004ACB80BFCEC34 AT nex_server DOT nextransport DOT com> |
NNTP-Posting-Host: | 137.112.205.146 |
X-Trace: | solomon.cs.rose-hulman.edu 939417720 7118 137.112.205.146 (8 Oct 1999 21:22:00 GMT) |
X-Complaints-To: | news AT cs DOT rose-hulman DOT edu |
NNTP-Posting-Date: | 8 Oct 1999 21:22:00 GMT |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
George Kinney <GKinney AT nextransport DOT com> wrote in message news:DB85AFBE7C0DD311BF260004ACB80BFCEC34 AT nex_server DOT nextransport DOT com... > >What do you mean initialize to zero? Do you mean like matrix[x][y] = 0 > >or do something else? > > You could, but: > memset( matrix, 0, [[matrix x-size] * [matrix y-size]] ) > would be quicker. > Provided your matrix is of chars. A more general method: memset(matrix, 0, sizeof(matrix));
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |