⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slide055.html

📁 《Big C++ 》Third Edition电子书和代码全集-Part1
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta content="blendTrans(Duration=2)" http-equiv="Page-Enter">
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="Copyright" content="2005 John Wiley & Sons">
  <meta name="Author" content="Kurt Schmidt">
	<script language="JavaScript" src="./config.js"></script>
	<script language="JavaScript" src="./pageFormat.js"></script>
	<script><!-- // Set title on page
		title()
	//--></script>
</head>


<body>
<div onclick="document.location='slide056.html'">
<h2><font color="#009999">24.4.4 Removal and Replacement Algorithms
	- <tt>remove_copy</tt> (cont.)</font></h2>
<font size="+1">

<ul>
	<li><tt>remove_copy(a.begin(), a.end(), b.begin(), 2)</tt> copies all values
		<i>except</i> the 2s:
		<blockquote>
		<table border=1>
			<tr>
				<th width="11%" bgcolor="#00ffff"><tt><font size="+1">a</font></tt></th>
				<td align="center" width="11%"><tt><font size="+1">1</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">2</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">3</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">2</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">4</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">2</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">5</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">6</font></tt></td>
			</tr>
			<tr>
				<th width="11%" bgcolor="#00ffff"><tt><font size="+1">b</font></tt></th>
				<td align="center" width="11%"><tt><font size="+1">1</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">3</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">4</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">5</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">6</font></tt></td>
				<td align="center" width="11%" bgcolor="#ff9999"><tt><font size="+1">
					0</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">0</font></tt></td>
				<td align="center" width="11%"><tt><font size="+1">0</font></tt></td>
			</tr>
		</table>
		</blockquote>
	</li>
	<li>Last 3 elements in <tt>b</tt> untouched</li>
	<li><tt>b</tt> was <i>not</i> resized (see <tt>erase</tt>, below)</li>
</ul>

</font>

<hr>
<center><small>
	<a href='slide054.html'>prev</a>
	|<a href='slide001.html'>top</a>
	|<a href='slide056.html'>next</a>
</small></center>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -