@Kubani
Stuff like:
and:
I would think it was one the most simple questions one person can have. |
sound sneering and aggressive, like you're the one asking simple, easy questions, and we're somehow being stupid for not understanding you.
Moschops' code compiled and worked fine; your comment "makes an error probably" suggests that you didn't even bother compiling it, or trying to understand it, instead just assuming that a much more knowledgeable person must have given you incorrect code - when, in fact, the code they posted was fine.
You failed to make any effort to try and understand the difference between their code and yours, and why their code might work when yours doesn't, and instead went straight to assuming their code was "probably" wrong.
There's a simple reason why your code doesn't compile when Moschops' code does, and if you'd just told us of the errors you were finding when following our suggestions, and asking what the solution was, I'm sure Moschops or I, or someone else, would have happily told you.
Instead, you just insultingly assumed that you knew better, and implied that we were somehow at fault for failing to deal properly with your "simple" question.