delorie.com/archives/browse.cgi | search |
From: | Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Trouble with bools |
Date: | Fri, 24 Oct 1997 10:45:52 +0200 |
Organization: | University of Ghent, Belgium |
Lines: | 15 |
Message-ID: | <34506040.2F1B@rug.ac.be> |
References: | <Pine DOT SUN DOT 3 DOT 95 DOT 971021204921 DOT 9037A-100000 AT lurch-fddi> |
NNTP-Posting-Host: | eduserv1.rug.ac.be |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
H. Anthony Hoyt wrote: > > bool foo[2][3] = { 0, 1, 0 > 1, 0, 1}; > > (Could someone tell me if I'm wrong but I think this is possable.) It is possible and the way you wrote it is more or less correct but the standard requires you to put {} round the initializer elements which are arrays. -- +----------------+ | Vik Heyndrickx | +----------------+
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |