[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


C++ Style Comments

(K&R, §A2.2) The C compiler can accept C++ comments in source code. In a C++ comment, anything that follows // on a line is considered a comment. For example:


a = b; // This is a C++ comment

To turn this feature on, turn off the ANSI Strict setting in the C/C++ Language Panel. If the ANSI Strict setting is on, then this extension to standard C is disabled.

See also: "ANSI Strict."


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000