<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="LASTUPDATED" content="06/17/05 11:09:43" />
<title>C++ Comments</title>
<link rel="StyleSheet" href="../../book.css" type="text/css"/>
</head>
<body bgcolor="#FFFFFF">
<h3>C++ Comments</h3>
<p>(ISO C, §6.4.9) The C compiler can accept C++ comments (<span class="code">//</span>) in source code. C++ comments consist of anything that follows <span class="code">//</span> on a line.</p>
<p class="listing"> a = b; // This is a C++ comment</p>
<p>To use this feature, disable the <a href="../pragmas/p_ANSI_strict.htm">ANSI Strict</a> setting.</p>
<p>See also <a href="c_std_conformity.htm">Checking for Standard C and Standard C++ Conformity</a>.
</p>
<div id="footer">Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
</body>
</html>