delorie.com/archives/browse.cgi | search |
From: | gehok55 AT hotmail DOT com (Josh) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: bool type |
Date: | Wed, 18 Apr 2001 08:28:43 GMT |
Message-ID: | <3add4e25.65909932@news.dingoblue.net.au> |
References: | <20010418005914 DOT 7485 DOT qmail AT web13308 DOT mail DOT yahoo DOT com> |
X-Newsreader: | Forte Free Agent 1.21/32.243 |
Lines: | 33 |
NNTP-Posting-Host: | 198.142.75.227 |
X-Trace: | 987582476 news01.syd.optusnet.com.au 25513 198.142.75.227 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
i dont seem to have a bool.h in any of my djgpp directories :| i added this typedef int bool; #undef TRUE #define TRUE 1 #undef FALSE #define FALSE 0 which fixes the problem (temporarily) .. but im a little worried. isnt C meant to have a bool type? thanks >One problem could be that you aren't #including >bool.h. >Hope that helps (short but sweet...) > >-Rafael Frongillo >>im having some troubles declaring boolean variables.. >>where am i going wrong? >> >>typedef struct { >> int color; >> bool filled; >>}object; >> >>nasty stuff happens when i use the bool type. -Josh gehok55 AT hotmail DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |