Coder Profile - Show off your skills, get a coder profile.
 
 
 
[C++] Comments
Programming
DoxCoding.com


Now this is easy to understand. I dont even have to explain. But i will just incase.

So. These comments are used in most programming languages. NOT all but i said most.

So first of all i will explain the single line comment.

This is simple. It is basicly explained within the name.

The single line comment looks something like this:

// This is a single line comment.

Single line comments end at the end of the line. Comments are TOTALLY ignored by your C++ compiler. Meaning it is not read in as input OR output and will not make a difference in your C++ project.

Why are comments good?

Well comments are good if you stop codingh for a while. Or become lazy and pospone a project you are making. These comments then come in handy to remind you what you were doing. Do NOT comment the hell out of it. Its not normally for what its doing. Its for how it is doing it.

Ok onto the next comment.

A multi line comment.

It looks similar to this:
/*
This
is
a
multi-line
comment.
*/

As you can see this spreads across more than one line. This comment does not stop until you use the closing tag. ( */ ).

It starts with a /* (slash - star). It then ends with a */ (start - star).

That is about it on comments. As i said the are very easy.

Any questions on comments?
PM me.

Stay TUNED
-[O]


Posted By otoom
Please login to rate coding articles.

Click here to register a free account with us.
Comments
Please login to post comments.
Page 1 of 1
More Articles By This Author
Quick Threading Tutorial - C++
First look at C
[PHP] How to make a log file.
[VB] Hello World
HTML Cheat Sheet!
[C++] Comments
[C++] Functions
[C++]Taking In User Input,
Your First C++ Program
Recently Posted "Programming" Articles
[PHP] - Lets kill the complex IF
Java: Obtaining User Input - Part 1
Basic PortScanner in VB6.0
N-Queens-Series Part I (Only the fittest survive)
Currying in JavaScript: Fun for the Whole Family!
[PHP] Create A Unique Page Hits Counter
Actionscript Events
Actionscript API
Quick Threading Tutorial - C++
C++ And Me (A Love Story)
Recently Rated "Programming" Articles
[PHP] - Lets kill the complex IF
Java: Obtaining User Input - Part 1
[C++] Templates
Quick Threading Tutorial - C++
Intorduction to memoization.
N-Queens-Series Part I (Only the fittest survive)
[PHP] Create A Unique Page Hits Counter
Currying in JavaScript: Fun for the Whole Family!
Actionscript Events
First look at C
source codes Categories articles
Browse All
Business & E-Commerce (1)
Databases (1)
Design & Creativity (1)
Internet & Web Sites (1)
Life In General (2)
Networking (1)
Operating Systems (4)
Other (2)
Programming (51)
Security (10)
Software Development (5)
Standards (1)
Web Development (15)
search Search Inside
Programming
 
 
Latest News About Coder Profile
Coder Profile Poll
Which is your favorite web language?

ASP / ASP.Net
JSP
PHP
Perl
Python


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
5 Days Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2008, Scott Thompson, All Rights Reserved