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

📄 csdn技术中心 stl vector 容器介绍.mht

📁 C++ STL方面的学习文档
💻 MHT
📖 第 1 页 / 共 5 页
字号:
10.5pt"><o:p></o:p></SPAN></B></P>
            <TABLE class=3DMsoTableGrid=20
            style=3D"BACKGROUND: #f3f3f3; MARGIN: auto auto auto 23.4pt; =
BORDER-COLLAPSE: collapse; mso-yfti-tbllook: 480; mso-padding-alt: 0cm =
5.4pt 0cm 5.4pt"=20
            cellSpacing=3D0 cellPadding=3D0 border=3D0>
              <TBODY>
              <TR=20
              style=3D"mso-yfti-irow: 0; mso-yfti-firstrow: yes; =
mso-yfti-lastrow: yes">
                <TD=20
                style=3D"BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 5.4pt; =
BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; =
BORDER-LEFT: #ece9d8; WIDTH: 396pt; PADDING-TOP: 0cm; BORDER-BOTTOM: =
#ece9d8; BACKGROUND-COLOR: transparent"=20
                vAlign=3Dtop width=3D528>
                  <P class=3DMsoNormal=20
                  style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 10pt; =
mso-line-height-rule: exactly"><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">using</SPAN><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">=20
                  std::vector;<o:p></o:p></SPAN></P>
                  <P class=3DMsoNormal=20
                  style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 10pt; =
mso-line-height-rule: exactly"><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">vector&lt;</SPAN><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">int</SPAN><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">&gt;=20
                  vInts;<o:p></o:p></SPAN></P></TD></TR></TBODY></TABLE>
            <P class=3DMsoNormal=20
            style=3D"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN =
lang=3DEN-US=20
            style=3D"FONT-SIZE: 9pt"><o:p>&nbsp;</o:p></SPAN></P>
            <P class=3DMsoNormal=20
            style=3D"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN=20
            style=3D"FONT-SIZE: 9pt; FONT-FAMILY: =CB=CE=CC=E5; =
mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times =
New =
Roman'">=BB=F2=D5=DF=C1=AC=D4=DA=D2=BB=C6=F0=A3=AC=CA=B9=D3=C3=C8=AB=C3=FB=
=A3=BA</SPAN><B=20
            style=3D"mso-bidi-font-weight: normal"><SPAN lang=3DEN-US=20
            style=3D"COLOR: #993300; mso-bidi-font-size: =
10.5pt"><o:p></o:p></SPAN></B></P>
            <TABLE class=3DMsoTableGrid=20
            style=3D"BACKGROUND: #f3f3f3; MARGIN: auto auto auto 23.4pt; =
BORDER-COLLAPSE: collapse; mso-yfti-tbllook: 480; mso-padding-alt: 0cm =
5.4pt 0cm 5.4pt"=20
            cellSpacing=3D0 cellPadding=3D0 border=3D0>
              <TBODY>
              <TR=20
              style=3D"mso-yfti-irow: 0; mso-yfti-firstrow: yes; =
mso-yfti-lastrow: yes">
                <TD=20
                style=3D"BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 5.4pt; =
BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; =
BORDER-LEFT: #ece9d8; WIDTH: 396pt; PADDING-TOP: 0cm; BORDER-BOTTOM: =
#ece9d8; BACKGROUND-COLOR: transparent"=20
                vAlign=3Dtop width=3D528>
                  <P class=3DMsoNormal=20
                  style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 10pt; =
mso-line-height-rule: exactly"><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">std::vector&lt;</SPAN><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">int</SPAN><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">&gt;=20
                  vInts;<o:p></o:p></SPAN></P></TD></TR></TBODY></TABLE>
            <P class=3DMsoNormal=20
            style=3D"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN =
lang=3DEN-US=20
            style=3D"FONT-SIZE: 9pt"><o:p>&nbsp;</o:p></SPAN></P>
            <P class=3DMsoNormal=20
            style=3D"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN=20
            style=3D"FONT-SIZE: 9pt; FONT-FAMILY: =CB=CE=CC=E5; =
mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times =
New =
Roman'">=BD=A8=D2=E9=CA=B9=D3=C3=C8=AB=BE=D6=B5=C4=C3=FC=C3=FB=D3=F2=B7=BD=
=CA=BD=A3=BA</SPAN><B=20
            style=3D"mso-bidi-font-weight: normal"><SPAN lang=3DEN-US=20
            style=3D"COLOR: #993300; mso-bidi-font-size: =
10.5pt"><o:p></o:p></SPAN></B></P>
            <TABLE class=3DMsoTableGrid=20
            style=3D"BACKGROUND: #f3f3f3; MARGIN: auto auto auto 23.4pt; =
BORDER-COLLAPSE: collapse; mso-yfti-tbllook: 480; mso-padding-alt: 0cm =
5.4pt 0cm 5.4pt"=20
            cellSpacing=3D0 cellPadding=3D0 border=3D0>
              <TBODY>
              <TR=20
              style=3D"mso-yfti-irow: 0; mso-yfti-firstrow: yes; =
mso-yfti-lastrow: yes">
                <TD=20
                style=3D"BORDER-RIGHT: #ece9d8; PADDING-RIGHT: 5.4pt; =
BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; =
BORDER-LEFT: #ece9d8; WIDTH: 396pt; PADDING-TOP: 0cm; BORDER-BOTTOM: =
#ece9d8; BACKGROUND-COLOR: transparent"=20
                vAlign=3Dtop width=3D528>
                  <P class=3DMsoNormal=20
                  style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 10pt; =
mso-line-height-rule: exactly"><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">using</SPAN><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">=20
                  </SPAN><SPAN lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">namespace</SPAN><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">=20
                  std;<o:p></o:p></SPAN></P></TD></TR></TBODY></TABLE>
            <P class=3DMsoNormal=20
            style=3D"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN =
lang=3DEN-US=20
            style=3D"FONT-SIZE: 9pt"><o:p>&nbsp;</o:p></SPAN></P>
            <P class=3DMsoNormal=20
            style=3D"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN=20
            style=3D"FONT-SIZE: 9pt; FONT-FAMILY: =CB=CE=CC=E5; =
mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times =
New =
Roman'">=D4=DA=BA=F3=C3=E6=B5=C4=B2=D9=D7=F7=D6=D0=C8=AB=BE=D6=B5=C4=C3=FC=
=C3=FB=D3=F2=B7=BD=CA=BD=BB=E1=D4=EC=B3=C9=D2=BB=D0=A9=CE=CA=CC=E2=A1=A3<=
/SPAN><SPAN=20
            lang=3DEN-US=20
            style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">vector</SPAN><SPAN=20
            style=3D"FONT-SIZE: 9pt; FONT-FAMILY: =CB=CE=CC=E5; =
mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times =
New =
Roman'">=C8=DD=C6=F7=CC=E1=B9=A9=C1=CB=BA=DC=B6=E0=BD=D3=BF=DA=A3=AC=D4=DA=
=CF=C2=C3=E6=B5=C4=B1=ED=D6=D0=C1=D0=B3=F6</SPAN><SPAN=20
            lang=3DEN-US=20
            style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">vector</SPAN><SPAN=20
            style=3D"FONT-SIZE: 9pt; FONT-FAMILY: =CB=CE=CC=E5; =
mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times =
New =
Roman'">=B5=C4=B3=C9=D4=B1=BA=AF=CA=FD=BA=CD=B2=D9=D7=F7=A1=A3</SPAN><SPA=
N=20
            lang=3DEN-US style=3D"FONT-SIZE: 9pt"><o:p></o:p></SPAN></P>
            <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><B=20
            style=3D"mso-bidi-font-weight: normal"><SPAN lang=3DEN-US=20
            style=3D"COLOR: #993300; mso-bidi-font-size: =
10.5pt"><o:p>&nbsp;</o:p></SPAN></B></P>
            <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><B=20
            style=3D"mso-bidi-font-weight: normal"><SPAN lang=3DEN-US=20
            style=3D"COLOR: #993300; mso-bidi-font-size: =
10.5pt">Vector</SPAN></B><B=20
            style=3D"mso-bidi-font-weight: normal"><SPAN=20
            style=3D"COLOR: #993300; FONT-FAMILY: =CB=CE=CC=E5; =
mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times =
New Roman'; mso-bidi-font-size: =
10.5pt">=B3=C9=D4=B1=BA=AF=CA=FD</SPAN></B><B=20
            style=3D"mso-bidi-font-weight: normal"><SPAN lang=3DEN-US=20
            style=3D"COLOR: #993300; mso-bidi-font-size: =
10.5pt"><o:p></o:p></SPAN></B></P>
            <DIV align=3Dcenter>
            <TABLE class=3DMsoNormalTable=20
            style=3D"BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: =
windowtext 1pt solid; BORDER-LEFT: windowtext 1pt solid; WIDTH: 90%; =
BORDER-BOTTOM: windowtext 1pt solid; mso-padding-alt: 2.25pt 2.25pt =
2.25pt 2.25pt; mso-cellspacing: .7pt; mso-border-alt: solid windowtext =
.5pt"=20
            cellSpacing=3D1 cellPadding=3D0 width=3D"90%" border=3D1>
              <TBODY>
              <TR style=3D"mso-yfti-irow: 0; mso-yfti-firstrow: yes">
                <TD=20
                style=3D"BORDER-RIGHT: windowtext 1pt solid; =
PADDING-RIGHT: 2.25pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: =
2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: windowtext; WIDTH: 33%; =
PADDING-TOP: 2.25pt; BORDER-BOTTOM: windowtext 1pt solid; =
BACKGROUND-COLOR: transparent; mso-border-top-alt: solid windowtext =
.5pt; mso-border-bottom-alt: solid windowtext .5pt; =
mso-border-right-alt: solid windowtext .5pt"=20
                width=3D"33%">
                  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm =
0pt"><SPAN=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
=CB=CE=CC=E5; mso-ascii-font-family: Verdana; mso-hansi-font-family: =
Verdana; mso-font-kerning: 0pt">=BA=AF=CA=FD</SPAN><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt"><o:p></o:p></SPAN></P></TD>
                <TD=20
                style=3D"BORDER-RIGHT: windowtext; PADDING-RIGHT: =
2.25pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 2.25pt; =
PADDING-BOTTOM: 2.25pt; BORDER-LEFT: windowtext 1pt solid; WIDTH: =
66.44%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: windowtext 1pt solid; =
BACKGROUND-COLOR: transparent; mso-border-top-alt: solid windowtext =
.5pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: =
solid windowtext .5pt"=20
                width=3D"66%">
                  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm =
0pt"><SPAN=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
=CB=CE=CC=E5; mso-ascii-font-family: Verdana; mso-hansi-font-family: =
Verdana; mso-font-kerning: 0pt">=B1=ED=CA=F6</SPAN><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt"><o:p></o:p></SPAN></P></TD></TR>
              <TR style=3D"mso-yfti-irow: 1">
                <TD=20
                style=3D"BORDER-RIGHT: windowtext; PADDING-RIGHT: =
2.25pt; BORDER-TOP: windowtext; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: =
2.25pt; BORDER-LEFT: windowtext; WIDTH: 33%; PADDING-TOP: 2.25pt; =
BORDER-BOTTOM: windowtext; BACKGROUND-COLOR: transparent"=20
                width=3D"33%">
                  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm =
0pt"><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">c.assign(beg,end)<o:p></o:p></SPAN></P>
                  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm =
0pt"><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: =
0pt">c.assign(n,elem)<o:p></o:p></SPAN></P></TD>
                <TD=20
                style=3D"BORDER-RIGHT: windowtext; PADDING-RIGHT: =
2.25pt; BORDER-TOP: windowtext; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: =
2.25pt; BORDER-LEFT: windowtext; WIDTH: 66.44%; PADDING-TOP: 2.25pt; =
BORDER-BOTTOM: windowtext; BACKGROUND-COLOR: transparent"=20
                width=3D"66%">
                  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm =
0pt"><SPAN=20
                  style=3D"FONT-SIZE: 9pt; FONT-FAMILY: =CB=CE=CC=E5; =
mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times =
New Roman'">=BD=AB</SPAN><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">[beg;=20
                  end)</SPAN><SPAN=20
                  style=3D"FONT-SIZE: 9pt; FONT-FAMILY: =CB=CE=CC=E5; =
mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times =
New =
Roman'">=C7=F8=BC=E4=D6=D0=B5=C4=CA=FD=BE=DD=B8=B3=D6=B5=B8=F8</SPAN><SPA=
N=20
                  lang=3DEN-US style=3D"FONT-SIZE: 9pt">c</SPAN><SPAN=20
                  style=3D"FONT-SIZE: 9pt; FONT-FAMILY: =CB=CE=CC=E5; =
mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times =
New Roman'">=A1=A3</SPAN><SPAN=20
                  lang=3DEN-US style=3D"FONT-SIZE: =
9pt"><o:p></o:p></SPAN></P>
                  <P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm =
0pt"><SPAN=20
                  style=3D"FONT-SIZE: 9pt; FONT-FAMILY: =CB=CE=CC=E5; =
mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times =
New Roman'">=BD=AB</SPAN><SPAN=20
                  lang=3DEN-US style=3D"FONT-SIZE: 9pt">n</SPAN><SPAN=20
                  style=3D"FONT-SIZE: 9pt; FONT-FAMILY: =CB=CE=CC=E5; =
mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times =
New Roman'">=B8=F6</SPAN><SPAN=20
                  lang=3DEN-US=20
                  style=3D"FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: =
Verdana; mso-font-kerning: 0pt">elem</SPAN><SPAN=20

⌨️ 快捷键说明

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