Re: EXIT_SUCCESS in C++

From: r norman (rsn__at__comcast.net)
Date: 11/18/04


Date: Thu, 18 Nov 2004 17:40:13 -0500

On 18 Nov 2004 11:39:18 -0800, JShao.CIS@gmail.com (Major_Small)
wrote:

>fb <fb@goaway.net> wrote in message news:<sgtmd.235320$nl.43657@pd7tw3no>...
>> I know that if you #include<stdlib.h> you can use EXIT_SUCCESS. I
>> consider this a C language item (simply because of the .h in the include
>> line). I was wondering if there is an EXIT_SUCCESS in C++ as well?
>>
>> Thanks.
>
>there is, but I wouldn't use it anyway. wether using macros or not is
>one of many programming 'holy wars' you'll come across, but I'd rather
>not use them. return 0 works just as well. in fact, in C++, you
>don't need to explicitly return anything.

What???!!! Are you suggesting that all my carefully crafted batch
files that depend on program exit codes are likely not to work on C+++
GUI-based programs? Wow, I guess I will have to rethink how I do
things. Next you are going to tell me that command line execution of
programs is dead!!!



Relevant Pages

  • Re: EXIT_SUCCESS in C++
    ... wether using macros or not is ... one of many programming 'holy wars' you'll come across, ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Work Book Security
    ... In order for code to run to determine whether macros are enabled, ... Note that your current scheme wouldn't prevent anyone from setting the ... > if it is greater than a value I put in it then it deletes the sheet and ... > wether Macro's are Enabled? ...
    (microsoft.public.excel.programming)