New account registration is temporarily disabled.

VERIFYEDRASTA'S PROFILE

Search

Filter

C++ question

author=Yellow Magic link=topic=3520.msg70450#msg70450 date=1239569285
I'm pretty sure C++ doesn't use "^" as "to the power of".

Yeah it doesn't. This is the explanation of the "^+" operator:
"Obtain the bitwise exclusive OR of the first and second operands; store the result in the object specified by the first operand."

So X1 = 1100 you say? I'll try it.

EDIT:
Actually, you know what. I think this is a trick question. The question is not outputting anything at all and nothing is being assigned. So X1 should remain the same value right?

Ask the person below you a question

I have 14 adorable cats that stroll around the house every day.

How often do you go to theme parks / when was the last time you've went?

C++ question

I'm doing a C++ course at my school and I haz a question.
Here is the original question from the quiz:


What would be the value of X1 when the following code segment completes execution?
int x1 = 9, x2 = 5;
x1 ^= x2;


Wouldn't it be 59049?
No I don't think it would... what does ^= do?

Thanks in advance.

Post an interesting fact about yourself!

I think I'm extremely close to becoming an alcoholic.

What Videogames Are You Playing Right Now?

author=Dark Gaia link=topic=2690.msg70383#msg70383 date=1239500188
Playing the Resident Evil 5 versus mode. It's hard but very fun and very addictive.

If you have the xbox 360 version, play against me to get owned :)

post your picture

The casting choice for Wolverine was between Hugh Jackman and Jakester.

My Brute would kick your Brutes ass. Prove otherwise.

This guy was a good opponent. His dodging skills are amazing! Too bad the fight ended in shuri spam.

http://meteordrop.mybrute.com/fight/20820124

Some whip pwnage:
http://h321.mybrute.com/fight/19835162

My Brute would kick your Brutes ass. Prove otherwise.

author=ChaosProductions link=topic=3468.msg70347#msg70347 date=1239476855
I'd rather it be Feld, actually.

idc

My Brute would kick your Brutes ass. Prove otherwise.

author=S. F. LaValle link=topic=3468.msg70335#msg70335 date=1239458458
Is anyone level 10 yet? If so, make an RMN clan that we can all join.

Right now I'm catching up on Feld's ass so it's a race between me and him.
Both of us are level 7, soon to be 8.

RE 5 Release

You guys should buy versus. It's pretty damn fun!