<Snipped quote by Legend>
Trash phone, good comp, give trash access to good via connection.
Are you asking me how to activate resource sharing?
<Snipped quote by Legend>
Trash phone, good comp, give trash access to good via connection.
<Snipped quote by DarkwolfX37>
Are you asking me how to activate resource sharing?
<Snipped quote by Legend>
Just how do I let my phone use my comp's ram because my phone's ram sucks.
<Snipped quote by DarkwolfX37>
It's impossible. If it were, it wouldn't help.
<Snipped quote by Legend>
That's dumb. My phone can't run this shit very well and a new phone isn't going to work.
<Snipped quote by DarkwolfX37>
It's not dumb. It's a physical limitation.
<Snipped quote by Legend>
It... it's not? Run the program that's on the phone on the computer or vice versa while it's connected. The limitation isn't physical.
@Legend
How should I go about recursively writing a method that raises x to a power of n and works for both +n and -n? Powers are easy enough but I don't see the logic behind getting it to work for both
<Snipped quote by Multifarious>
Not sure why anyone wouldn't use the built in x^5, but you could do something like
public int powerUp(int num, int power)
{
if(power == 0) //Stop condition
return 1;
else if (power > 1) //Positive powers
return powerUp(num, power - 1) * num;
else //Negative powers
return 1 / powerUp(num, power + 1) * num;
}
<Snipped quote by Legend>
Oh, one over the power makes so much sense. Duh. Kill me now.
<Snipped quote by Multifarious>
Actually, wait! Not only did the Guild's default formatting totally ruin my beautifully formatted code, but there needs to be a negative on the second last line.
else //Negative powers
return 1 / (powerUp(num, -1 * power - 1) * num);
<Snipped quote by Legend>
The bit for positive numbers always seems to return a value of zero regardless of the input. Not sure if that's an issue with my own code or not though.
Okay so can I use my comp's processor because constant crashes is annoying.
<Snipped quote by DarkwolfX37>
Nope. Resource sharing isn't possible.
<Snipped quote by Legend>
That's dumb.