I was a high school IT teacher for just around five years and I take exception to the 'Cheating' tag you've added. Learning is learning - if you get the question right and understand the answer, it isn't cheating to discuss it with someone.
Maybe if you copy and paste the answer without even reading it - but even then, that comes out in the long run.
EDIT
To expand on this. In order to answer a question in your homework you've got to go through a number of steps.
- Read the question
- Think about whether you know the answer
- Decide you don't
- Seek out an answer (usually in the palce closet to you, maybe the textbook?)
- Decide you can't find it easily, post it to stack
- Phrase your question appropriately - communicate effectively
- Wait for an answer (all the while the problem 'percolates' in your head
- Read the answer you get, decide that it's right
- Have the final answer, discover it has value - know the answer - it's now 'stuck in your head' because you had to work for it
Homework isn't necessarily supposed to "draw blood" - it's supposed to make you think. I honestly believe that you WILL learn if you try to figure out your homework using stack. It's a discussion after all.
There's a lot of value in all of the above - I don't think it's necessarily cheating. It's certainly possible to use stack to cheat (if as discussed earlier, you don't pay any attention to the question or answer, if you get NOTHING out of the process) ... but working with the help of others isn't cheating on its own.
Think of it as more analogous to working with a study group or a tutor.