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

📄 containers.html

📁 标准c/c++帮助文档
💻 HTML
字号:
<HTML><HEAD>  <TITLE>C++ Containers</TITLE></HEAD><BODY BGCOLOR="FFFFFF"><TABLE WIDTH="100%" BGCOLOR="EEEEFF"><TR><TD>  <A HREF="index.html">cppreference.com</A> -&gt; Containers(容器)</TD></TR></TABLE><H1>C++ Containers(容器)</H1>C++ 容器 (如vectors(向量), lists(链表), 等.) 是一种能够容纳不同类型数据的通用容器.  例如, 下面的代码常见一个能够容纳int类型数据的 <A HREF="cppvector_details.html">vector</A> :<PRE>vector&lt;int&gt; v;</PRE>只要容器中的对象能够满足如下条件,C++容器既能够容纳C++内建的类型对象 (像上面例子中的 <STRONG>int</STRONG>类型) 也能够自定义的对象:<UL>  <LI> 对象必须有默认构造函数,  <LI> 有一个可访问的析构函数, 并且  <LI> 有一个可访问的赋值操作符重载函数(operator=).</UL>当我们在本文档中描述各种容器的功能的时候, 我们用 <STRONG>TYPE</STRONG> 来表示容器所包含的数据的类型.  例如, 在上面例子中,<STRONG>TYPE</STRONG> 表示 <STRONG>int</STRONG>.</BODY></HTML><br><html>
  <head>
    <meta http-equiv='Content-Type' content='text/html' charset='ISO_8859_1'>
    <title>147</title>
  <style>
  <!--
div#StrBanner /* Creates Nonscrolling banner region */
	{
	position: relative;
	left: 0px;
	padding: 0px 0px 0px 0px;
	border-bottom: 1px solid #999999;
	background-color: #99ccff;
	}
div#titlerow /* <!-- 147 --> */
	{
	padding: 0px 10px 0px 22px; 
	}
h1, h2, h3, h4 /* <!-- 147 --> */
	{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	margin-bottom: .4em; 
	margin-top: 0em;
	font-weight: bold;
	}
	--> 
  </style>          
   </head>
   <body><!-- 147 -->
      <div id='StrBanner'>
         <div>
            <table class='TableBanner' cellspacing='0'>
               <tr>
                  <td ALIGN=RIGHT><!-- 147 --></td>
                  <td ALIGN=RIGHT><!-- 147 --></td> </tr>
            </table>
         </div>
         <div id='TitleRow'>
            <h3>Extr<!-- 147 -->acted by <!-- 147 -->Tria<!-- 147 -->l version of Ch<!-- 147 -->mDecom<!-- 147 -->piler<!-- 147 --> (<a href="http://www.etextwizard.com/download/cd/cdsetup.exe" target=_blank>Download Now</a>).</h3>   
            <h4>Once reg<!-- 147 -->istered, <!-- 147 -->all restrictions of the Tr<!-- 147 -->ial version are removed.</h4> 
            <a href="http://www.zipghost.com/order_chmdecompiler.html" target=_blank><H3>B<!-- 147 -->uy Now</H3></a>        
         </div>
      </div>
      <p><!-- 147 -->
      </p>
  </body>
</html>

⌨️ 快捷键说明

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