home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!stein.u.washington.edu!bketcham
- From: bketcham@stein.u.washington.edu (Benjamin Ketcham)
- Subject: Re: turboc
- Message-ID: <1992Dec18.201850.16644@u.washington.edu>
- Sender: news@u.washington.edu (USENET News System)
- Organization: University of Washington, Seattle
- References: <1992Dec18.140840.891@nrlvx1.nrl.navy.mil>
- Date: Fri, 18 Dec 1992 20:18:50 GMT
- Lines: 39
-
- in article <1992Dec18.140840.891@nrlvx1.nrl.navy.mil> donohue@nrlvx1.nrl.navy.mil writes:
- >
- >John Donohue
- >
-
- > if (number[size -1] != '\0')
- > {
- > puts("Too many digits; You wiped me out.");
- > number[size-1] = '\0';
- > goto M10;
- ^^^^
- AAAAAAAAAAAAAAAAAAAAAAAGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!!!!!
-
- > }
- >while ((ch = number[count]) != '\0' && digit == YES)
- > {
- > if (!issign(ch) && !isdigit(ch))
- > {
- > digit = NO;
- > printf("That doesn't look like an number\n");
- > goto M10;
- ^^^^
- AAAAAAAAAAAAAAAAAAAAAAAGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!!!!!
-
- > }
- > if (digit == YES)
- > {
- > value = atof(number);
- > printf("The number was %f \n",value);
- > goto stoper;
- ^^^^
- AAAAAAAAAAAAAAAAAAAAAAAGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!!!!!
-
- > }
- > }
- >stoper: printf("PROGRAM DONE\n");
- >}
-
-
-