Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9168477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:38:05+00:00 2026-06-17T15:38:05+00:00

Using Code::Blocks IDE for Mac in my C++ class, I’m spending some time trying

  • 0

Using Code::Blocks IDE for Mac in my C++ class, I’m spending some time trying to clean up my first lab with comments and the like, and the syntax highlighting alerted me to something I can’t seem to find documentation over online.

    /**
      Author: Name
      Lab1
      Purpose: simulate a calculator with informative menu
    */

has a different highlighting color than simply

    /*
      What I thought
      a normal multiline comment
      was...
    */

and even different still from

    // Models a basic calculator with looping menu until sentinel or invalid operator is given

I’m curious as to what the purpose/function is to the first code snippet. In Java, this is a docstring. Does it serve the same purpose in C++? If not, what is it, and how is it conventionally used?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:38:06+00:00Added an answer on June 17, 2026 at 3:38 pm

    The first is a comment that Doxygen will recognize as documentation. Doxygen is modeled after Javadoc. And it’s rather popular, so it’s not surprising that Code::Blocks recognizes it. Doxygen can generate output in a wide variety of formats, including straight HTML that can be viewed with a web browser.

    I don’t know why it decided that the 2nd and 3rd examples should be a different color. Maybe because one is a block comment and another is ‘until the end of line’ comment. But that seems like a somewhat trivial distinction to me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a C++ class using the Code::Blocks IDE and there is
I did some reading on IDE`s (I am currently using Code::Blocks) and everyone appears
I'm using the Code::Blocks IDE with the GNU GCC compiler. struct test { char
We're developing a Qt project using the Code::Blocks IDE with the QtWorkbench plugin. We'd
I am trying to compile an old C++ software project in Code::Blocks using the
I am using Code::Blocks and have set the command-line arugments via the IDE. I
I have been using the gcc compiler with code::blocks ide, and have noticed there
I'm trying to convert some VC++ 6 code to a console app using only
For few days I'm trying to compile one project written in C++ using Code::Blocks
i'm learning C. i'm using ubuntu and have Code::Blocks as IDE i have this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.