Weird glitch/bug with c++ program compiled in Ubuntu? or am I doing something wrong?

John Shaver bobjohnbob at gmail.com
Wed Feb 15 15:48:44 MST 2012


On Wed, Feb 15, 2012 at 3:29 PM, Byron Clark <byron at theclarkfamily.name> wrote:
> diff -u source.orig/calc.cpp source/calc.cpp
> --- source.orig/calc.cpp        2012-02-14 21:57:33.000000000 -0700
> +++ source/calc.cpp     2012-02-15 15:28:03.392211261 -0700
> @@ -69,6 +69,10 @@
>                                assert(parenthesis);
>                                f.ignore(1, EOF);
>                        }
> +                       else if(next == '\r')
> +                       {
> +                               f.ignore(1, EOF);
> +                       }
>                        else if(next == '\n')
>                        {
>                                while(ops.size())
>
> --
> Byron Clark

Thanks for the patch.  I fixed it a little differently, but that would do it to.

-John Shaver


More information about the PLUG mailing list