Re: can any bdy help me



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.
.



Relevant Pages

  • Re: (C) missing semi-colon
    ... and just executes the next line. ... print the prompts but not accept any input. ... top of the function and since you don't initialize it it has some ...
    (alt.comp.lang.learn.c-cpp)
  • Re: SW API creating Stand alone Executable
    ... I am using Solid Works API in VC++ 6.0. ... I want my stand alone *.exe application ... Initialize and then Open SW first via Code in a HIDDEN Window. ... Since you cant set focus to a hidden window, ...
    (comp.cad.solidworks)
  • Re: testing for RAPI init
    ... definitely don't specifically check whether any fail because RAPI ... failed to initialize. ... >> Boston, MA 02118 ...
    (microsoft.public.pocketpc.developer)
  • Re: Manifest file as a custom resource.
    ... The call is usually placed in the forms 'Initialize' event. ... it will create the manifest file automatically in ... I've yet to see this fail on Vista. ...
    (microsoft.public.vb.general.discussion)
  • Re: When and where do I do Set m_FormVar = Nothing?
    ... For a Form No code absolutely HAS to appear in _Initialize or _Terminate and ... Except perhaps some debug routine to report a class has ... reason - if they fail, they do so with little reporting back to the program. ...
    (microsoft.public.vb.general.discussion)