Public Group

#### Archived

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

# C++ help?

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

## Recommended Posts

Hi!! ]im an newB!! i just want to ask a little Q!!! 1.what is the differents between //* /* //*** and//**??? Can someone be nice and help me on my way to be the next Hideo Kojima?

##### Share on other sites
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.

1. 1
2. 2
3. 3
4. 4
Rutin
17
5. 5

• 11
• 21
• 12
• 9
• 11
• ### Forum Statistics

• Total Topics
631403
• Total Posts
2999878
×