IDE:MS Visual Studio 2008版本9.0.21022.8 RTM
编译器:Microsoft(R)32位C / C ++优化编译器版本 15.00.21022.08适用于80x86
代码:
<li>
<a href="about.html">ABOUT US</a>
<div class="submenu">
<div class="col-md-5">
<h2>ABOUT US</h2>
<img src="images/sub-menu-img-about.jpg" alt="img"></div>
<div class="col-md-7">
<ul>
<li><a href="#">SUB MENU</a></li>
<li><a href="#">SUB MENU</a></li>
<li><a href="#">SUB MENU</a></li>
<li><a href="#">SUB MENU</a></li>
</ul>
</div>
</div>
</li>
编译器期望抛出错误C2105的// main.cpp - compiled as cpp file
int main()
{
const int x = 10;
x++; // error C2105: '++' needs l-value
x = x+1; // error C3892: 'x' : you cannot assign to a variable that is const
return(0);
}
是什么?