Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder djh101's Avatar
    Join Date
    May 2009
    Location
    California
    Posts
    626
    Thanks
    51
    Thanked 67 Times in 67 Posts

    What is the meaning of /** comments?

    I've never come across anything explaining this before. The only difference between /** and /* comments, from what I've seen, is that a)/** seems to be popular for things such as the copyright information displayed at the beginning of prebuilt codes and b)/** comments are blue in Notepad++ while /* comments are green.
    "Yeah science!"

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Anything after /* is a comment. So if you see /** then the second asterisk is part of the comment. How people comment their code is personal preference although many people and companies develop or adopt coding standards that dictate how to write code to include how to comment the code.

    Now the fact that you see /** often is likely due to people making their code Doxygen compliant. Doxygen is a tool that can autogenerate documentation about your code but your comment blocks must conform to their guidelines.

    http://en.wikipedia.org/wiki/Doxygen
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • Users who have thanked Spookster for this post:

    djh101 (10-01-2011)

  • #3
    Regular Coder djh101's Avatar
    Join Date
    May 2009
    Location
    California
    Posts
    626
    Thanks
    51
    Thanked 67 Times in 67 Posts
    Ah, very interesting (somewhat). Thank you.
    "Yeah science!"


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •