Did you just do the problem for him (or her)? Why?
Printable View
Did you just do the problem for him (or her)? Why?
Well..... yes.... I guess I did finish it. Not sure how I can justify my action. I guess I figured the OP was pretty much there and had demonstrated real effort towards solving it, but was over complicating things.
No excuses. I finished it for them. If the mods feel it is inappropriate, pull it.
There's no official rule against doing people's work for them that I know of, and I didn't think it was a homework assignment (it might be), so it's not that big of a deal. I was just wondering. If you feel it is inappropriate, then you can pull it.
You just copied the poor indenting, too. The OP is mixing tabs n' spaces!
Alternatively, just use spaces to indent. This is a situation where you cannot have your tabs and eat the spaces too :)
Or just use all tabs! You don't need to line-up code at all. Tabs is perfectly fine for making readable code!
Tabs vs. spaces is a big argument with both sides favoring one over the other, so there's no real point in saying which one is better.
Yes - what I said was just that there are two alternatives [I have my thoughts about which is better, and I know this is just as difficult to resolve as the battle over which Christian form is "better" - Protestantism or Catholicism]. But there's absolutely no need to MIX the two - that is DEFINITELY a way to confuse everything and anything.
--
Mats
Fine, I see your point. I'll try using only tabs in the future, thanks.