Article View: be.comp.programming
Article #5203Re: VRAAGJE C/C++
From: Dr.Ruud
Date: Mon, 19 May 2003 00:33
Date: Mon, 19 May 2003 00:33
16 lines
1664 bytes
1664 bytes
Ivan Van den Bossche skribis:
> Zou er iemand mij kunnen uitleggen wat de volgende functie doet?
>
> int TestBit(BYTE val, int intIndex)
> {
> return ((val & (1 << intIndex)) > index) ? 1 : 0;
> }
Zou misschien dit worden bedoeld?
return ((val & (1 << intIndex)) >> intIndex) ? 1 : 0;
Niet dat die '>> intIndex' dan nodig is overigens.
--
Affijn, Ruud
Technical Details
Message-ID:
<ba9frt.1ms.1@news.isolution.nl>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!transit.news.xs4all.nl!newsfeed.xs4all.nl!xs4all!not-for-mailReferences:
<CVJxa.7359$1u5.531@afrodite.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,2cd6db1915f275ab
X-Google-Attributes: gidfcea4,public
X-Google-Thread: 107324,2cd6db1915f275ab
X-Google-Attributes: gid107324,public
X-Google-ArrivalTime: 2003-05-18 17:50:05 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!transit.news.xs4all.nl!newsfeed.xs4all.nl!xs4all!not-for-mail
Message-ID: <ba9frt.1ms.1@news.isolution.nl>
Reply-To: "Dr.Ruud" <nospam@isolution.nl>
From: "Dr.Ruud" <'t.leven.is.fijn@life.i$.great>
Newsgroups: be.comp.programming,nl.comp.programmeren
References: <CVJxa.7359$1u5.531@afrodite.telenet-ops.be>
Subject: Re: VRAAGJE C/C++
Date: Mon, 19 May 2003 02:33:44 +0200
Organization: Chaos rules.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Face: #{C<X">RxZJ*2)H_&d$Um/=B%{yse{[bKgJ2AxD^-`7rAZej\.vG{F'C$p(>&#cS
Lines: 18
NNTP-Posting-Date: 19 May 2003 02:45:37 CEST
NNTP-Posting-Host: 24.132.0.158
X-Trace: 1053305137 news.xs4all.nl 49102 rvtol/24.132.0.158:64759
X-Complaints-To: abuse@xs4all.nl