<html>
<head>
<title>C++语言程序设计</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../../../../css/text.css" type="text/css">
</head>
<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td valign="top" align="center">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class=text width="2"><img src="../../../../images/pic/chap02/1x1pixel.gif" width="1" height="1"></td>
<td class=text> <br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="text">
<tr>
<td colspan="2" height="8"><img src="../../../../images/pic/chap02/1x1pixel.gif" width="1" height="1"></td>
</tr>
<tr>
<td width="35"><img src="../../../../images/pic/icon/bg.gif" width="25" height="20" alt="表格"></td>
<td><b>表3-14 C++运算符的优先级和结合性</b></td>
</tr>
<tr>
<td> </td>
<td>
<table width="90%" border="1" cellspacing="0" cellpadding="0" bordercolor="#99CC00" bordercolorlight="666600" bordercolordark="#FFFFFF" class="text">
<tr align="center" bgcolor="#D7D7AE">
<td>优先级</td>
<td>运算符</td>
<td>种类</td>
<td>结合性</td>
</tr>
<tr align="center">
<td>最高</td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="text">
<tr>
<td>: :(全局)</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</td>
<td>单</td>
<td>从右到左</td>
</tr>
<tr align="center">
<td>最高</td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="text">
<tr>
<td>: :(类域)</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</td>
<td>双</td>
<td>从左到右</td>
</tr>
<tr align="center">
<td><font color="#FFFFFF">.</font></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class=text>
<tr align="center">
<td>( )(括号及函数调用)</td>
<td>- > </td>
<td>.</td>
<td>.[ ]</td>
</tr>
</table>
</td>
<td>双</td>
<td>从左到右</td>
</tr>
<tr align="center">
<td><font color="#FFFFFF">.</font></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="text">
<tr align="center">
<td>+<br>
-</td>
<td>++<br>
-- </td>
<td>!<br>
~ </td>
<td>*<br>
& </td>
<td>new<br>
delete</td>
<td>sizeof<br>
(类型) </td>
</tr>
</table>
</td>
<td>单</td>
<td>从右到左</td>
</tr>
<tr align="center">
<td><font color="#FFFFFF">.</font></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="text">
<tr align="center">
<td>- > *</td>
<td>. *</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</td>
<td>双</td>
<td>从左到右</td>
</tr>
<tr align="center">
<td><font color="#FFFFFF">.</font></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="text">
<tr align="center">
<td>+</td>
<td>/</td>
<td>% </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</td>
<td>双</td>
<td>从左到右</td>
</tr>
<tr align="center">
<td><font color="#FFFFFF">.</font></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="text">
<tr align="center">
<td>+</td>
<td>-</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</td>
<td>双</td>
<td>从左到右</td>
</tr>
<tr align="center">
<td><font color="#FFFFFF">.</font></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="text">
<tr align="center">
<td><<</td>
<td>>></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</td>
<td>双</td>
<td>从左到右</td>
</tr>
<tr align="center">
<td><font color="#FFFFFF">.</font></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="text">
<tr align="center">
<td><</td>
<td>< =</td>
<td> ></td>
<td>> =</td>
<td> </td>
<td> </td>
</tr>