Zyt3x
09-11-2007, 02:25 PM
Comments is very usefull to comment on a procedure, a constance a variable and other things, to get the user to understand what it does.
It is also usefull to take away a part of a code:
Example:
Copy/Paste this into scar.
program New;
Begin
Wait(500)
//code.
//Wait(500) //This will only wait 0.5 second instead of 1 second.
End.
This is all "Comment Codes" that you can use.
//- comments are for 1 line only.
{}- comments are for 1+ lines.
(**)- comments are for 1+lines.
Example:
Copy/Paste this into scar.
program New;
begin
//Comment.
{Comment.}
(*Comment.*)
end.
It is also usefull to take away a part of a code:
Example:
Copy/Paste this into scar.
program New;
Begin
Wait(500)
//code.
//Wait(500) //This will only wait 0.5 second instead of 1 second.
End.
This is all "Comment Codes" that you can use.
//- comments are for 1 line only.
{}- comments are for 1+ lines.
(**)- comments are for 1+lines.
Example:
Copy/Paste this into scar.
program New;
begin
//Comment.
{Comment.}
(*Comment.*)
end.