Article View: be.comp.programming
Article #5190Re: VRAAGJE C/C++
From: Marcus
Date: Sun, 18 May 2003 11:27
Date: Sun, 18 May 2003 11:27
12 lines
1409 bytes
1409 bytes
Ivan Van den Bossche wrote:
> Zou er iemand mij kunnen uitleggen wat de volgende functie doet?
>
> int TestBit(BYTE val, int intIndex)
> {
> return ((val & (1 << intIndex)) > index) ? 1 : 0;
> }
Misschien als je vertelt hoe BYTE is gedefinieert, en waar 'index' weg
komt.
Mark
Technical Details
Message-ID:
<3ec76e06$0$147$e4fe514c@dreader8.news.xs4all.nl>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed1.easynews.com!easynews.com!easynews!news-out.nuthinbutnews.com!propagator2-sterling!in.nntp.be!news2.euro.net!news2.euro.net!transit.news.xs4all.nl!newsfeed.xs4all.nl!xs4all!newszilla.xs4all.nl!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: 107324,2cd6db1915f275ab X-Google-Attributes: gid107324,public X-Google-Thread: fcea4,2cd6db1915f275ab X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2003-05-18 04:28:05 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed1.easynews.com!easynews.com!easynews!news-out.nuthinbutnews.com!propagator2-sterling!in.nntp.be!news2.euro.net!news2.euro.net!transit.news.xs4all.nl!newsfeed.xs4all.nl!xs4all!newszilla.xs4all.nl!not-for-mail From: "Marcus" <doei@bannerswapnl.com> Newsgroups: be.comp.programming,nl.comp.programmeren References: <CVJxa.7359$1u5.531@afrodite.telenet-ops.be> Subject: Re: VRAAGJE C/C++ Date: Sun, 18 May 2003 13:27:01 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Lines: 14 Message-ID: <3ec76e06$0$147$e4fe514c@dreader8.news.xs4all.nl> NNTP-Posting-Host: 80.126.79.199 X-Trace: 1053257222 dreader8.news.xs4all.nl 147 80.126.79.199:10400