www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/28/17:16:40

From: <OneClickAway AT worldnet DOT att DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help: Undeclared functions...
Date: 28 Mar 1998 22:12:22 GMT
Organization: AT&T WorldNet Services
Lines: 13
Message-ID: <6fjsk6$a5n@bgtnsc02.worldnet.att.net>
References: <351D7EBF DOT A26F9438 AT sprynet DOT com>
NNTP-Posting-Host: 12.64.161.8
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Are you using C or C++?
ANSI C does not support the bool type, but ANSI C++ does
To use the bool type in C, typedef "BOOL" as "int"

Ishpeck <aTedjamulia AT sprynet DOT com> wrote in article
<351D7EBF DOT A26F9438 AT sprynet DOT com>...
> I have a function that declares a series of
> vairables as follows:
> bool trueorfalse;
> It tells me that:
> "bool undeclared (first use in this function)"
> What am I suposed to do to have boolean values?!
> 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019