Home

Old Wolf wrote:
> On Sep 18, 3:24 pm, "Victor Bazarov" <v.Abaza...@comAcast.net> wrote:
>> JoeC wrote:
>>> m_iWidth = (int)pBitmapInfo->bmiHeader.biWidth;
>>> m_iHeight = (int)pBitmapInfo->bmiHeader.biHeight;
>>
>> The unary operator & is
>> for taking the address of the operand. The (blah) notation is
>> for *casting* the left operand into a different type.
>
> The (int) casts what's to the right of it (I'm sure
> you know this, but you wrote 'left operand').

It was a braino, I was thinking that both operators are written
to the left of what they operate on... Thanks for noticing and
correcting.

> Also, in this example it casts the entirety of the
> right-hand side of the '=', since -> and . bind
> more tightly than the cast.

I am guesing you use the terms "bind more tightly" in place of
"have higher precedence".

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask

previous
next

RE: Pb with an AttributeError
Re: Writing Scalabe Software in C++
Re: G++ paste operator - expands as desired but compile fails
Re: copy constructors with iterators
Re: Tuned cars!!!
Fundacja Iskierka
Rodzic Po Ludzku
Mimo Wszystko
Dzieci Niczyje
Krwinka