📄 v3_slide0361.htm
字号:
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=PowerPoint.Slide>
<meta name=Generator content="Microsoft PowerPoint 10">
<link id=Main-File rel=Main-File href="../roadtrip99.htm">
<link rel=Preview href=preview.wmf>
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
p\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
v\:textbox {display:none;}
</style>
<![endif]-->
<title>Embracing the C++ STL</title>
<meta name=Description content="4/2/2002: Iterators">
<link rel=next href="v3_slide0362.htm">
</head>
<body background="v3_master19_background.gif" bgcolor="#333399" alink="#9999FF"
link="#99CCFF" vlink="#0066FF" text="#CCECFF" topmargin=0 leftmargin=0>
<table border=0 valign=top width=475 height=356 cellpadding=0 cellspacing=0>
<tr>
<td width=17 height=0 nowrap><img src="v3_space.gif" border=0></td>
<td width=23 height=0 nowrap><img src="v3_space.gif" border=0></td>
<td width=4 height=0 nowrap><img src="v3_space.gif" border=0></td>
<td width=66 height=0 nowrap><img src="v3_space.gif" border=0></td>
<td width=24 height=0 nowrap><img src="v3_space.gif" border=0></td>
<td width=310 height=0 nowrap><img src="v3_space.gif" border=0></td>
<td width=10 height=0 nowrap><img src="v3_space.gif" border=0></td>
</tr>
<tr>
<td width=475 height=34 colspan=8></td>
</tr>
<tr>
<td width=17 height=36></td>
<td width=117 height=36 colspan=4>
<table border=0 valign=top cellpadding=0 cellspacing=0>
<tr>
<td width=117 height=36><font face=Tahoma color="#CCFFFF" size=5>Iterators</font><br>
</td>
</tr>
</table>
</td>
<td width=341 height=36 colspan=3></td>
</tr>
<tr>
<td width=475 height=10 colspan=8></td>
</tr>
<tr>
<td width=44 height=90 colspan=3></td>
<td width=410 height=90 colspan=4><img src="v3_slide0361_image024.gif"
border=0 width=410 height=90></td>
<td width=21 height=90></td>
</tr>
<tr>
<td width=475 height=10 colspan=8></td>
</tr>
<tr>
<td width=40 height=127 colspan=2></td>
<td width=404 height=127 colspan=4>
<table border=0 valign=top cellpadding=0 cellspacing=0>
<tr>
<td width=18 height=0 nowrap><img src="v3_space.gif" border=0></td>
<td width=1 height=0 nowrap><img src="v3_space.gif" border=0></td>
<td width=5 height=0 nowrap><img src="v3_space.gif" border=0></td>
<td width=90 height=0 nowrap><img src="v3_space.gif" border=0></td>
<td width=37 height=0 nowrap><img src="v3_space.gif" border=0></td>
<td width=24 height=0 nowrap><img src="v3_space.gif" border=0></td>
<td width=207 height=0 nowrap><img src="v3_space.gif" border=0></td>
</tr>
<tr>
<td width=18 height=26><font face="Monotype Sorts" color="#0066FF" size=2>n</font></td>
<td width=157 height=26 colspan=5><font face=Tahoma size=4>Typical
iteration</font><br>
</td>
<td width=230 height=26 colspan=2></td>
</tr>
<tr>
<td width=405 height=15 colspan=8></td>
</tr>
<tr>
<td width=24 height=14 colspan=3></td>
<td width=127 height=14 colspan=2><font face="Courier New" size=1><b>c<T>::iterator
i;</b></font><br>
</td>
<td width=254 height=14 colspan=3></td>
</tr>
<tr>
<td width=405 height=1 colspan=8></td>
</tr>
<tr>
<td width=24 height=14 colspan=3></td>
<td width=358 height=14 colspan=4><font face="Courier New" size=1><b>for (i
= c.begin(); i != c.end() ++i) </b></font><font face="Courier New"
color="#33CC33" size=1><b>// forward</b></font><br>
</td>
<td width=23 height=14></td>
</tr>
<tr>
<td width=24 height=14 colspan=3></td>
<td width=90 height=14><font face="Courier New" size=1><b><span
style='mso-spacerun:yes'>牋 </span>T t = *i;</b></font><br>
</td>
<td width=291 height=14 colspan=4></td>
</tr>
<tr>
<td width=405 height=14 colspan=8></td>
</tr>
<tr>
<td width=24 height=14 colspan=3></td>
<td width=381 height=14 colspan=5><font face="Courier New" size=1><b>for (i
= c.rbegin(); i != c.rend() ++i) </b></font><font face="Courier New"
color="#33CC33" size=1><b>// backward</b></font><br>
</td>
</tr>
<tr>
<td width=405 height=1 colspan=8></td>
</tr>
<tr>
<td width=24 height=14 colspan=3></td>
<td width=90 height=14><font face="Courier New" size=1><b><span
style='mso-spacerun:yes'>牋 </span>T t = *i;</b></font><br>
</td>
<td width=291 height=14 colspan=4></td>
</tr>
</table>
</td>
<td width=31 height=127 colspan=2></td>
</tr>
<tr>
<td width=475 height=28 colspan=8></td>
</tr>
<tr>
<td width=40 height=8 colspan=2></td>
<td width=70 height=8 colspan=2><img src="v3_master19_image025.gif" border=0
width=70 height=8></td>
<td width=365 height=8 colspan=4></td>
</tr>
<tr>
<td width=475 height=13 colspan=8></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -