Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!sdcsvax!ucsdhub!hp-sdd!ncr-sd!ncrcae!hubcap!disd From: disd@hubcap.clemson.edu (Gary Heffelfinger) Newsgroups: comp.sys.amiga Subject: Re: C/AmigaDos Problem Message-ID: <5209@hubcap.clemson.edu> Date: 21 Apr 89 16:20:26 GMT References: <905@jarthur.Claremont.EDU> Organization: Clemson University, Clemson, SC Lines: 28 From article <905@jarthur.Claremont.EDU>, by jshortle@jarthur.Claremont.EDU (John Shortle): > I have written a simple command-line reverse polish notation calculator in C. > If you want to compute (3 - 4 / 7), for example, you type, 'num 3 4 7 / -'. > It works fine unless you end the command with a plus (+) character. You > must hit return twice, and the program doesn't recognize the plus character > as part of the statement. I wrote a short program to test this oddity. > --- > Does anyone know what causes this and/or how to fix it? '+' means "continued on the next line" to DOS. I don't know how you could get around it. You might have to substitute some other character for the plus sign. Gary -- Gary R Heffelfinger - disd@hubcap.clemson.edu "If it should become necessary to fight, could you arrange to find me some rocks to throw at them?" W.T. Riker