📄 7.8.0.htm
字号:
<html>
<head>
<title>编译原理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link type="text/css" rel="stylesheet" href="../css/specification.css">
</head>
<body>
<table align="right" width="300">
<tr>
<td><img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'"
onclick="vbscript:window.location.href='7.7.0c.htm'" ></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'"
onclick="vbscript:window.location.href='7.8.0b.htm'" ></td>
</tr>
</table>
<p><br>
<br>
<font class="title2"><b>练习</b></font> </p>
<table>
<tr>
<td> </td>
<td class="content">7.1 翻译算术表达式a*-(b+c)为 <br>
(a)一棵语法树, <br>
(b)后缀式, <br>
(c)三地址代码。<br>
<table align="center" width="70%">
<tr>
<td align="right"><img src="key.gif" onmouseover="javascript:style.cursor='hand'"
onclick="javascript:window.open('7.8.1.htm','','left=50,top=40,toolbar=no,scrollbars=yes,width=600,height=600')"
width="32" height="32"> </td>
</tr>
</table>
<p><a name="7.2"></a> </p>
<hr size="2" align="center" color="red">
<p><br>
7.2翻译算术表达式一(a+b)*(c+d)+(a+b+c)为<br>
(a)四元式, <br>
(b)三元式 <br>
(c)间接三元式 <br>
</p>
<table align="center" width="70%">
<tr>
<td align="right"><img src="key.gif" onmouseover="javascript:style.cursor='hand'"
onclick="javascript:window.open('7.8.2.htm','','left=50,top=40,toolbar=no,scrollbars=yes,width=600,height=600')"
width="32" height="32"> </td>
</tr>
</table>
<p><a name="7.3"></a> </p>
<hr size="2" align="center" color="red">
<p><br>
7.3 试把下列C语言程序的可执行语句 <br>
</p>
<table align="center" width="350">
<tr>
<td>main()</td>
</tr>
<tr>
<td>{<br>
int i;<br>
int a[10];<br>
while (i<=10)<br>
a[i]=0;<br>
}</td>
</tr>
</table>
<p><br>
翻译为<br>
(a)一棵语法树, <br>
(b)后缀式, <br>
(c)三地址代码。 <br>
</p>
<table align="center" width="70%">
<tr>
<td align="right"><img src="key.gif" onmouseover="javascript:style.cursor='hand'"
onclick="javascript:window.open('7.8.3.htm','','left=50,top=40,toolbar=no,scrollbars=yes,width=800,height=600')"
width="32" height="32"> </td>
</tr>
</table>
<hr size="2" align="center" color="red">
</td>
</tr>
</table>
<br>
<table align="right" width="300">
<tr>
<td><img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'"
onclick="vbscript:window.location.href='7.7.0c.htm'" ></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'"
onclick="vbscript:window.location.href='7.8.0b.htm'" ></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -