Re: can any bdy help me
- From: Christopher Benson-Manica <ataru@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 May 2007 13:39:57 +0000 (UTC)
Chris Dollin <chris.dollin@xxxxxx> wrote:
shanti wrote:
int stack[SIZE], *stk_ptr;
int choice;
int S_R_NO,option;
All these uninitialised variables make me nervous.
I'm not sure what one would initialize choice and option to; from
their names alone it would seem to be clear that they are intended to
store input from the user; my religion indicates that initialization
is therefore optional at best. (S_R_NO, on the other hand, might be
profitably initialized, although the question of "to what" is not easy
to answer without deciphering its very poor name.)
DON'T SHOUT AT ME, YOU STUPID MACHINE.
My Commodore 64 shouted at me a lot, and was only pacified by magical
incantations such as "LOAD *, 8, 1" (or some such nonsense) :-)
Um. If you weren't going to let me not-continue, why did you
offer me a choice in the first place?
For the same reason that users always got the option to "abort, retry,
fail" no matter how much the real choices might have been "fail, fail,
fail"...
--
C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com | don't, I need to know. Flames welcome.
.
- References:
- can any bdy help me
- From: shanti
- Re: can any bdy help me
- From: Chris Dollin
- can any bdy help me
- Prev by Date: Re: global variable declaration in header
- Next by Date: Re: small C compiler that will run on Vista
- Previous by thread: Re: can any bdy help me
- Next by thread: Re: can any bdy help me
- Index(es):
Relevant Pages
|