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

📄 slide054.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">
	<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='slide055.html'">
<h2><font color='#009999'>26.5.2 The STRATEGY Pattern</font></h2>
<font size="+1">

<ul>
	<table border='1' cellpadding='4'>
		<tr bgcolor='#00ffff'>
			<th width='50%'>Name in Design Pattern</th>
			<th width='50%'>Actual Name (String Streams)</th>
		</tr>
		<tr>
			<td align='center'><tt>Context</tt></td>
			<td align='center'><tt>sort</tt> function</td>
		</tr>
		<tr>
			<td align='center'><tt>Strategy</tt></td>
			<td align='center'>The i/f that <tt>sort</tt> expects <tt>comparator</tt>
				to have, i.e., <tt>operator()</tt></td>
		</tr>
		<tr>
			<td align='center'><tt>ConcreteStrategy</tt></td>
			<td align='center'>The <tt>comparator</tt> class</td>
		</tr>
		<tr>
			<td align='center'><tt>do_work()</tt></td>
			<td align='center'>The <tt>operator()</tt></td>
		</tr>
	</table>
</ul>

</font>

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

⌨️ 快捷键说明

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