DotNet Visual C: Identical code produces different output

  • tonyjeffs2_googlemail_com / 206 / Tues, 02 Mar 2010 19:46:00 GMT / Comments (1)
  • Thanks Ben for the reply.

    I'm using the same compiler in the same way with identical code.
    Swapping the two identically named files Name.CPP swaps the fault -
    it is permanantly attached to one file.
    I've looked at them with a hex editor and they're (apparantly)
    completely identical. Baffling!
    I'll try and ignore it - it's too much of a side track I think- I'll
    read about sequence points though.
    My garbled output seems more in keeping with the sequence of execution
    that I'd expect. It seems odd for a function to return its value
    before executing the cout<< line.

    much appreciated,
    Tony

  • Keywords:

    identical, code, produces, different, output, dotnet, visual, .net

  • http://dotnet.itags.org/visual-c/71210/«« Last Thread - Next Thread »»
    1. I think I need to read all your posts again with a clearer more awake
      head, which I'll do.
      I'm probably offline for a day,
      For now I'm going to doodle with the code...

      Thanks again
      Tony

      tonyjeffs2_googlemail_com | Fri, 04 Jan 2008 23:32:00 GMT |

  • DotNet Visual C Questions

    • Ordering of #includes

      Hi,Coming from VB, I've still not really grasped the way howin C++ if function A wants to call funct...

      By bentaylor, 10 Comments

    • Help with PRINTDLG and PrintDlg

      I'm trying to use PrintDlg (and PRINTDLG) to create a printer dialogwith landscape as the default. H...

      By charleshamm, 2 Comments

    • ICE

      Hello all,can someone confirm internal compiler error in a following code (both VS2005and VS2003):#i...

      By vladimirnesterovsky, 1 Comments

    • Memory leakage !

      I have placed MS comm control on Test dialog, While initiate the dialog itis occupying around 2MB sp...

      By sirria, 1 Comments

    • Is this a Unicode problem?

      Here are two complete lines of output from Visual Studio 2005:1>$B%W%m%8%'%/%H=PNO$K(B Aut...

      By normandiamond, 5 Comments