📄 6.4.0b.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='6.4.0.htm'"></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='6.4.0c.htm'"></img></td>
</tr>
</table>
<br><br>
<table><tr><td>    </td>
<td class="content">
<table><tr>
<br>
<table width="40%" align=center border=1 cellspacing=0 cellpadding=5>
<tr>
<td width="60%" height=30 align=center>说明</td>
<td width="40%" align=center>作用域</td>
</tr>
<tr>
<td align=left>
<p>int a = 0;</p>
<p>int b = 0;</p>
<p>int b = 1;</p>
<p>int a = 2;</p>
<p>int b = 3;</p>
</td>
<td align=center>
<br>
<p><center>B<sub>0</sub>-B<sub>2</sub></center></p>
<p><center>B<sub>0</sub>-B<sub>1</sub></center></p>
<p><center>B<sub>1</sub>-B<sub>3</sub></center></p>
<p><center>B<sub>2</sub></center></p>
<p><center>B<sub>3</sub></center></p>
</td>
</table>
<br>
<table width="90%" align=center border=0>
<tr>
<td width="10%"></td>
<td width="90%">
rain()<br>
{<br>
:    int a = 0;<br>
:    int b = 0;<br>
:    {<br>
:    :    int b = 1;<br>
:    :    {<br>
:    :    ... int a = 2;<br>
:    :    B<sub>2</sub> printf("%d%d\n",a,b); (印出十进制数a,b并换行)<br>
:    :    ...<br>
:    :    }<br>
B<sub>0</sub>   B<sub>1</sub>  {<br>
:    :    ...<br>
:    :    B<sub>3</sub> int b = 3;<br>
:    :    ... printf("%d%d\n",a,b);<br>
:    :    }<br>
:    :    printf("%d%d\n",a,b);<br>
:    }<br>
:    printf("%d%d\n",a,b);<br>
}<br>
</td>
</tr>
</table>
<p><center><b>图6.15</b>  在一个C程序中的块</center></p><br>
</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='6.4.0.htm'"></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='6.4.0c.htm'"></img></td>
</tr>
</table>
</BODY>
<html><script language="JavaScript">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -