Click here to Skip to main content
14,495,894 members

C / C++ / MFC

 
AnswerRe: TAPI http request Pin
Richard MacCutchan24-Feb-20 23:10
mveRichard MacCutchan24-Feb-20 23:10 
QuestionTo bool or not to bool in C/C++ ? Pin
Vaclav_20-Feb-20 16:11
MemberVaclav_20-Feb-20 16:11 
AnswerRe: To bool or not to bool in C/C++ ? Pin
CPallini20-Feb-20 21:00
mveCPallini20-Feb-20 21:00 
AnswerRe: To bool or not to bool in C/C++ ? Pin
Stephane Capo20-Feb-20 21:55
MemberStephane Capo20-Feb-20 21:55 
AnswerRe: To bool or not to bool in C/C++ ? Pin
Richard MacCutchan20-Feb-20 22:00
mveRichard MacCutchan20-Feb-20 22:00 
AnswerRe: To bool or not to bool in C/C++ ? Pin
Victor Nijegorodov20-Feb-20 22:08
MemberVictor Nijegorodov20-Feb-20 22:08 
GeneralRe: To bool or not to bool in C/C++ ? Pin
Vaclav_21-Feb-20 10:18
MemberVaclav_21-Feb-20 10:18 
GeneralRe: To bool or not to bool in C/C++ ? Pin
k505421-Feb-20 10:51
Memberk505421-Feb-20 10:51 
Vaclav_ wrote:
By "standard" I was referring to your definition of "1972 C language" which did not have "type" of bool.

My Goodness!!!!!
No wonder you are confused. NOBODY uses C72 except in DIRE circumstances. The only time I've used C72 in the last 30 years is to bootstrap into gcc. C72 didn't have void. or function prototypes. In K&R C you defined functions as:
func(x, y)
int x;
double y;
{
    /* function body /
    / implicitly returns int, which is
     * value of last statement if no 
     * explicit return 
     */
}

The ISO standard for C didn't appear until 1989, and that's been superseded by C99 and C11.

You should at least be using C89. Preferably C11. Get with the current century, man!
AnswerRe: To bool or not to bool in C/C++ ? Pin
Stefan_Lang21-Feb-20 0:31
mveStefan_Lang21-Feb-20 0:31 
AnswerRe: To bool or not to bool in C/C++ ? Pin
Vaclav_21-Feb-20 5:30
MemberVaclav_21-Feb-20 5:30 
GeneralRe: To bool or not to bool in C/C++ ? Pin
Richard MacCutchan21-Feb-20 5:54
mveRichard MacCutchan21-Feb-20 5:54 
GeneralRe: To bool or not to bool in C/C++ ? Pin
Vaclav_21-Feb-20 8:29
MemberVaclav_21-Feb-20 8:29 
GeneralRe: To bool or not to bool in C/C++ ? Pin
Richard MacCutchan21-Feb-20 22:03
mveRichard MacCutchan21-Feb-20 22:03 
GeneralRe: To bool or not to bool in C/C++ ? Pin
k505421-Feb-20 5:56
Memberk505421-Feb-20 5:56 
GeneralRe: To bool or not to bool in C/C++ ? Pin
Richard MacCutchan21-Feb-20 6:07
mveRichard MacCutchan21-Feb-20 6:07 
GeneralRe: To bool or not to bool in C/C++ ? Pin
k505421-Feb-20 6:16
Memberk505421-Feb-20 6:16 
GeneralRe: To bool or not to bool in C/C++ ? Pin
Richard MacCutchan21-Feb-20 6:18
mveRichard MacCutchan21-Feb-20 6:18 
GeneralRe: To bool or not to bool in C/C++ ? Pin
Vaclav_21-Feb-20 8:25
MemberVaclav_21-Feb-20 8:25 
GeneralRe: To bool or not to bool in C/C++ ? Pin
k505421-Feb-20 9:31
Memberk505421-Feb-20 9:31 
AnswerRe: To bool or not to bool in C/C++ ? Pin
leon de boer21-Feb-20 11:55
Memberleon de boer21-Feb-20 11:55 
GeneralRe: To bool or not to bool in C/C++ ? Pin
Vaclav_22-Feb-20 5:34
MemberVaclav_22-Feb-20 5:34 
GeneralRe: To bool or not to bool in C/C++ ? Pin
Richard MacCutchan22-Feb-20 6:47
mveRichard MacCutchan22-Feb-20 6:47 
GeneralRe: To bool or not to bool in C/C++ ? Pin
leon de boer23-Feb-20 5:29
Memberleon de boer23-Feb-20 5:29 
GeneralRe: To bool or not to bool in C/C++ ? Pin
Richard MacCutchan23-Feb-20 6:08
mveRichard MacCutchan23-Feb-20 6:08 
GeneralRe: To bool or not to bool in C/C++ ? Pin
Victor Nijegorodov23-Feb-20 20:43
MemberVictor Nijegorodov23-Feb-20 20:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.