DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Use of comments in C++

  1. #1
    Peter Lin Guest

    Use of comments in C++


    How many ways are there for putting comments in c++?
    Is there any special cases to these?

  2. #2
    Patrick McConnell Guest

    Re: Use of comments in C++


    Two that I know of:

    // a commented line

    /*
    a commented block
    */

    And you can't have a commented block (/*...*/) within another commented block.

    -Patrick

    "Peter Lin" <peterlin@engineer.com> wrote:
    >
    >How many ways are there for putting comments in c++?
    >Is there any special cases to these?



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center