/*A simple Hello World Program for C++ Beginners
Written By
Arikado
http://arikadosblog.blogspot.com */
Everything within the "/*" and "*/" characters is a comment and ignored by the computer when executing your program.
Single Line Comments are comments that are only on a single line of code. By typing the characters "//" you are initiating that all of the characters that follow, on that line only, are a comment. Here is an example of a single line comment:
int main(){ //This is a single line comment
Comments are (especially in open source software) important because they allow other people to easily understand your code. When writing any kind of code, always be sure to comment as frequently as possible.
No comments:
Post a Comment