int x, y;
while(x > y--)
{
if (x>0 && y<0)
x = y = pow(x , y);
else if(--x > y++)
x = x && y;
else
y = ( x & y)>> 3;
}
Printable View
int x, y;
while(x > y--)
{
if (x>0 && y<0)
x = y = pow(x , y);
else if(--x > y++)
x = x && y;
else
y = ( x & y)>> 3;
}
Why? What do think this c++ code is achieving? It looks fairly nonsensical. It doesn't even set initial values for x and y.
You're already posted this. Please don't repost.
Duplicate posts (aka SPAM) are being removed. Please consider this your only warning that duplicate posts are considered spam and can result in you being banned from the forum.
Also - this sounds like homework (which most of us won't help with). Why not just stick this into your compiler and let it generate the assembler code for you? Edit: Just looked at the code. I agree with what has been said - it is junk code, so this must be homework! ;)
Brad! Jones
Admin