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. Advertising

  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. Advertising

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. vijay
    Replies:
    7
    Views:
    14,572
    Jim Lewis
    Feb 7, 2005
  2. =?Utf-8?B?U2FuZHk=?=

    Commenting out VB code

    =?Utf-8?B?U2FuZHk=?=, Feb 2, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    52,003
    =?Utf-8?B?Sm9uWg==?=
    Feb 3, 2005
  3. Bob
    Replies:
    5
    Views:
    430
    Raymond Schmit
    Mar 9, 2011
  4. Replies:
    3
    Views:
    147
    Tigrao
    May 28, 2009
  5. Ted Sung
    Replies:
    1
    Views:
    343
    Sherm Pendley
    Aug 30, 2004
Loading...

Share This Page