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

Pipo DeClown

C++ help?

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 this post

Link to post
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.

Share this post

Link to post
Share on other sites