Re: Unexpected Result

From: John Harrison (john_andronicus_at_hotmail.com)
Date: 05/12/04


Date: Wed, 12 May 2004 12:10:25 +0100


"John J" <...@...> wrote in message
news:0f46a3597a95693e1c8032da97babdfb@news.teranews.com...
>
> Thankyou to those people in this newsgroup that have answered my questions
> and helped me to learn whilst developing my yacht race classes.
>
> I have now completed the three classes (Yacht, Race and Entry) and created
> .cpp to test the classes. Everything compiles without fault; however, when
I
> run the program the first part of the expected output is not displayed. I
> thought there may have been a buffer setting in my compiler so I tried
> compiling and directing the output into another file, then when I viewed
the
> output file the results were the same. As I remove calls to functions from
> my test .cpp more information is displayed. It seems to behaving exactly
> like a buffer that flushes the initial input upon saturation.
>
> All the code is below. Can I please ask someone to have a look at it and
> advise where I'm going wrong (if I'm going wrong). If it is a buffer issue
> does anyone no of a workaround? my compiler is vc++.
>
> Thanks for any help
>

It's not a buffer issue, it's bug in your code (I don't know this but I'd be
prepared to bet a pound to a penny). Just to help everyone along could you
explain which part of the output is missing? You say the first part, but
which part is that exactly?

john



Relevant Pages

  • Re: Attention Windows Users
    ... knowledge of buffer overrun exploits then. ... convenient way to exploit a buffer overrun. ... > compiles to assembly. ... Just as there are plenty of compiled BASICs, ...
    (rec.aviation.piloting)
  • Re: CREATE
    ... So, in effect, 5 CONSTANT FIVE compiles the equivalent of: ... Yours requires the extra space for the calls to LIT and EXIT. ... Most implementations have only the head, code address, and the data space. ... VARIABLE BUFFER 8 ALLOT \ 10 element array called BUFFER. ...
    (comp.lang.forth)
  • Re: Sorted Linked List
    ... > I debugged the program and it compiles fine. ... to your linked list system. ... They will be placed into a buffer until you press Enter. ... C++ Faq: http://www.parashift.com/c++-faq-lite ...
    (comp.lang.cpp)
  • Re: unbuffered file IO?
    ... I dare say it *compiles* fine, but it doesn't look exactly general ... purpose to me. ... buffer, read into it, and then convert the *whole* buffer into a ...
    (microsoft.public.dotnet.languages.csharp)

Loading