Testing Code

Author: mprokes

Commenting Your Code
Comments will always be an important part of programming; they are often used to describe whats going on in your code, and even for automatically generating documentation.

There are two styles of comments:

  • //Single Line

  • /*
    Multi
    Line
    */

Some issues with multi-line comments:

Since multi-line comments end with *\ this means that you may never include a *\ within the body of the comment.

ex:

	/*
 		An error is caused when I use a */ as you can see.
	*/
	

  • Reddit
  • StumbleUpon
  • Bebo
  • Yahoo Buzz
  • Delicious
  • Twitter
  • LiveJournal
  • Netlog
  • HelloTxt
  • Share/Bookmark

Leave a Reply