|
From: Abhijit S. <mu...@gm...> - 2003-06-23 18:25:27
|
Hello.
A
I M
V B
> > Suppose you can´t use the /* and */ comment delimiters
> > to put in comments
> > an area of a code in C++.
>
>
> Why?
I think he meant that he thought that /*-*/ should be used only in C. That's
not the case. It can be used in C++ source also.
> > If I use the // command, must I put them in each line
> > of this piece of
> > code?
> Yes.
> > Is there another way?
> No.
Actually, there is:
#if 0 // That's a zero
foo();
etc();
#endif
This has the advantage of not having the disadvantage had by nested /* */
comments:
/* /* blah */ and */
^
Comment ends here (unless your compiler supports nested
comments, which is not an ANSI/ISO requirement.
--
Abhijit Shylanath
Homepage: http://mudeth.tripod.com/
|