Jump to content
  • Advertisement


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

Pipo DeClown

C++ help?

This topic is 6054 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

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!