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

📄 cppstring.html

📁 ssd5 数据结构的课件
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>  <head>    <meta name="generator" content="HTML Tidy for Linux/x86 (vers 1st October 2002), see www.w3.org">    <title>C++ Strings</title>  </head>  <body bgcolor="#ffffff">    <table width="100%" bgcolor="#eeeeff">      <tr>        <td><a href="index.html">cppreference.com</a> -&gt; C++ Strings</td>      </tr>    </table>    <h3>C++ Strings</h3>    <table>      <tr>        <td><a href="cppstring_details.html#Constructors">Constructors</a></td>        <td>methods to initialize strings</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#Operators">Operators</a></td>        <td>compare and assign strings</td>      </tr>      <tr>        <td><a href="cppstring_details.html#append">append()</a></td>        <td>adds text to the end of a string</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#assign">assign()</a></td>        <td>assigns text to a string</td>      </tr>      <tr>        <td><a href="cppstring_details.html#at">at()</a></td>        <td>returns characters at a given index</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#begin">begin()</a></td>        <td>returns an iterator to the first element of the string</td>      </tr>      <tr>        <td><a href="cppstring_details.html#c_str">c_str()</a></td>        <td>returns a standard C character array version of the string</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#capacity">capacity()</a></td>        <td>the number of characters the string can hold</td>      </tr>      <tr>        <td><a href="cppstring_details.html#clear">clear()</a></td>        <td>clears the string</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#compare">compare()</a></td>        <td>compares two strings</td>      </tr>      <tr>        <td><a href="cppstring_details.html#copy">copy()</a></td>        <td>copies characters into an array</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#data">data()</a></td>        <td>returns a pointer to the first character</td>      </tr>      <tr>        <td><a href="cppstring_details.html#empty">empty()</a></td>        <td>true if the string is empty</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#end">end()</a></td>        <td>returns an iterator to the end of the string</td>      </tr>      <tr>        <td><a href="cppstring_details.html#erase">erase()</a></td>        <td>remove parts of the string</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#find">find()</a></td>        <td>find characters in the string</td>      </tr>      <tr>        <td><a href="cppstring_details.html#find_first_of">find_first_of()</a></td>        <td>find first occurrence of characters</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#find_first_not_of">find_first_not_of()</a></td>        <td>find first absence of characters</td>      </tr>      <tr>        <td><a href="cppstring_details.html#find_last_of">find_last_of()</a></td>        <td>find last occurrence of characters</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#find_last_not_of">find_last_not_of()</a></td>        <td>find last absence of characters</td>      </tr>      <tr>        <td><a href="cppstring_details.html#get_allocator">get_allocator()</a></td>        <td>returns the string's allocator</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppio_details.html#getline">getline()</a></td>        <td>an I/O function that reads data into a string</td>      </tr>      <tr>        <td><a href="cppstring_details.html#insert">insert()</a></td>        <td>insert characters into the string</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#length">length()</a></td>        <td>returns the string's length</td>      </tr>      <tr>        <td><a href="cppstring_details.html#max_size">max_size()</a></td>        <td>returns the maximum number of characters that the string can hold</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#rbegin">rbegin()</a></td>        <td>returns a reverse iterator to the end of the string</td>      </tr>      <tr>        <td><a href="cppstring_details.html#rend">rend()</a></td>        <td>returns a reverse iterator to the beginning of the string</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#replace">replace()</a></td>        <td>replace characters in the string</td>      </tr>      <tr>        <td><a href="cppstring_details.html#reserve">reserve()</a></td>        <td>sets the capacity of the string</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#resize">resize()</a></td>        <td>change the size of the string</td>      </tr>      <tr>        <td><a href="cppstring_details.html#rfind">rfind()</a></td>        <td>find the last occurrence of a substring</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#size">size()</a></td>        <td>returns the number of characters in the string</td>      </tr>      <tr>        <td><a href="cppstring_details.html#substr">substr()</a></td>        <td>returns a certain substring</td>      </tr>      <tr bgcolor="#eeeeff">        <td><a href="cppstring_details.html#swap">swap()</a></td>        <td>exchange two strings</td>      </tr>    </table>  </body></html>

⌨️ 快捷键说明

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