per9000 said:
Why not just ignore a message you find stupid instead of replying?
Firstly, the message wasn't stupid, exactly. It appeared to be an
attempt by the OP to avoid doing his homework. Many people in clc
consider this to be dishonest, and are not shy about saying so.
Secondly, if you don't like the replies made by people like Keith, why
not just ignore them instead of replying? Because you had something to
say? Right. Well, so did Keith. And so did I.
OK, it does not feed the ego,
So what? The best help I can give the OP is to suggest that he writes
his own programs. Otherwise, he'll never learn how to write good C.
This isn't about ego, but about altruism. Anyone who is here for the
good of their ego is in the wrong place: comp.lang.c is notorious for
ego-busting.
but it's a lot easier. Or send a quick hint
like "scanf + printf" (like I should have done).
....but instead you wrote a program that demonstrated your lack of regard
for scanf's return value. So much for ego.