commenting errors flagged as warnings instead of errors

Discussion in 'C++' started by Comp1597@yahoo.co.uk, Apr 8, 2009.

  1. Guest

    I'm using Visual C++ on Windows Vista.
    Being "only human", I sometimes use
    ***************************************/ to underline a section of
    code
    instead of the correct /************************************/ I'm
    surprised by the fact that my mistake generates a warning rather than
    an error.
    How does the compiler understand
    *************************/ ?

    Thanks
     
    , Apr 8, 2009
    #1
    1. Advertisements

  2. Guest

    On Apr 8, 10:26 pm, wrote:
    > I'm using Visual C++ on Windows Vista.
    > Being "only human", I sometimes use
    > ***************************************/   to underline a section of
    > code
    > instead of the correct  /************************************/    I'm
    > surprised by the fact that my mistake generates a warning rather than
    > an error.
    > How does the compiler understand
    > *************************/           ?
    >
    > Thanks


    Sorry, I was much too hasty. It generates an error as well as a
    warning.
    Should have looked it over more carefully.
     
    , Apr 8, 2009
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,278
    Mark Goldin
    Jan 17, 2004
  2. Miguel Farah
    Replies:
    38
    Views:
    3,683
    Stefan Schulz
    Jan 4, 2006
  3. Guest
    Replies:
    6
    Views:
    15,176
    Sravani
    May 19, 2012
  4. Woodchuck

    ASP.NET Reference: Errors & Warnings ?

    Woodchuck, Dec 17, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    351
    Woodchuck
    Dec 17, 2006
  5. prasanna

    all errors and warnings in C

    prasanna, Jul 18, 2004, in forum: C Programming
    Replies:
    30
    Views:
    915
  6. Bob
    Replies:
    5
    Views:
    619
    Raymond Schmit
    Mar 9, 2011
  7. Replies:
    3
    Views:
    231
    Tigrao
    May 28, 2009
  8. Ted Sung
    Replies:
    1
    Views:
    548
    Sherm Pendley
    Aug 30, 2004
Loading...