This topic is now archived and is closed to further replies.

C++ help?

This topic is 5774 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

There are two different comment styles in C++: block commenting and line commenting.

A block comment requires the beginning of the block to be marked with "/*" and ended with "*/", like this...
... this is a block comment

A line comment begins with a "//" symbol and ends at the next carriage return:
// this is a line comment

So, the comment which looks like "//*" is actually a line comment. The asterisk forms part of the commented-out section.

"/*" is the beginning of a comment block.

"//***" is another line comment where the three asterisks are commented-out.

"//**" is yet another line comment where two asterisks are commented-out.

The placement of a donkey''s eyes in its head enables it to see all four feet at all times.

Share this post

Link to post
Share on other sites