Re: EXIT_SUCCESS in C++
From: r norman (rsn__at__comcast.net)
Date: 11/18/04
- Next message: JS: "Help needed compiling C code"
- Previous message: Mike Undercofler: "Re: What are the benefits?"
- In reply to: Major_Small: "Re: EXIT_SUCCESS in C++"
- Next in thread: B. v Ingen Schenau: "Re: EXIT_SUCCESS in C++"
- Reply: B. v Ingen Schenau: "Re: EXIT_SUCCESS in C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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!!!
- Next message: JS: "Help needed compiling C code"
- Previous message: Mike Undercofler: "Re: What are the benefits?"
- In reply to: Major_Small: "Re: EXIT_SUCCESS in C++"
- Next in thread: B. v Ingen Schenau: "Re: EXIT_SUCCESS in C++"
- Reply: B. v Ingen Schenau: "Re: EXIT_SUCCESS in C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|