Think about the following scenario:
1) Somebody's almost failing a course, and subsequently flunking
out of school, and they're getting desperate (and face it,
you'd have to be pretty desperate to be looking for help in
this loony place known as CLC).
So, what sort of help are they looking for, and what sort of help do they
need? I've been a professional programmer (now retired), and have taken
said courses; I'm pretty sure of what it takes to learn from (or
conversely, flunk) those courses.
You know the "give a man a fish" saying? Well, ISTM that it applies to this
situation as well, but even more so. It is secondary that the OP doesn't
know how to solve a simple problem with elementary C code. The *primary*
problem is that the OP doesn't know how to "think like a programmer". Once
he conquers /that/ step, it becomes trivial to learn and use /any/
programming language to solve programming problems.
So, What should we (in CLC) do for such questions? Should we ignore them?
Should we give them the (useless) answer to their question? (Useless,
because without the "programmer mindset", the "answer" does not solve their
real problem). Do we show them their failings? Do we carp about other
posters? Or, do we try to teach them to "think like a programmer" so that
they can learn?
2) Said person's parents are threatening to cut off funding if
said person flunks out. Also comments to the effect of
bringing shame on the family...
If the person posts an obvious homework problem here for solution by others
(presumably, so that s/he can claim unearned credit for the solution), then
s/he has /already/ brought shame on themselves and on their family. If I
were taken to judgments, I would say that they were cheats and liars, and
lazy (or at least inattentive) to boot. Thankfully, I'm not taken to
judgments.
3) Said person looks for help on CLC and gets the usual
treatment, and subsequently kills himself.
I seriously doubt it. But then again, if someone is so off-centre that they
commit suicide because someone here gave them flack for posting a homework
problem, it is likely that they are already on the suicide track,
and /anything/ could set them off.
You want that on your conscience?
Think of it as evolution in action.
HTH
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------