📄 slide029.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='slide030.html'">
<h2><font color="#009999">Quality Tip 22.2</font></h2>
<font size="+1">
<hr color="#00ffff" size="6">
<p><font color="#009999">Use <tt>typedef</tt> to Form an Alias for a
Long Name</font></p>
<ul>
<li><tt>typedef</tt> long types:
<blockquote><tt>
typedef pair<int, double> ElementType;
<br>typedef vector< pair<string, <nobr>string> ></nobr>
StringMap;
</tt></blockquote>
</li>
<li>Space inside the <tt>> ></tt></li>
<li>Associates a new name with the given type</li>
<li>Use as any other type:
<blockquote><tt>
ElementType new_value; <font color="#0000cc">
// new_value is type pair<int, string></font>
</tt></blockquote>
</li>
</ul>
</font>
<hr>
<center><small>
<a href='slide028.html'>prev</a>
|<a href='slide001.html'>top</a>
|<a href='slide030.html'>next</a>
</small></center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -