|
From: Lloyd <ll...@cd...> - 2008-02-12 03:25:07
|
//C does not have bool data type
enum
{
FALSE=0,
TRUE=1
};
typedef int bool;
int main()
{
bool a=TRUE;
}
On Mon, 2008-02-11 at 18:36 -0500, Shawn wrote:
> Thanks, but the compiler is still saying 'TRUE' undeclared (first use
> this function) and points me to the line where I initialize it to TRUE
> at the beginning of my program.
>
> bool output = TRUE;
>
> I thought that as soon as you call bool, the compiler knows it's
> either going to be true or false?
>
> pepone.onrez wrote:
> > dev...@li...
> >
> > On Feb 12, 2008 12:09 AM, Shawn <tre...@gm...> wrote:>
> > >but then what would I put just before the total shipping charges
> > line so it wouldn't print?
> > if(output == TRUE){
> > //output is TRUE to what you whan
> > }else{
> >
> >
> > }
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE:
> > http://www23.brinkster.com/noicys/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
> >
> > ____________________________________________________________________
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >
> > ____________________________________________________________________
> >
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
______________________________________
Scanned and protected by Email scanner
|