#include<string>里面包含一些什么样的函数和字符串?
发布网友
发布时间:2022-04-29 16:10
我来回答
共2个回答
热心网友
时间:2023-10-18 08:08
string的成员函数
Member functions(constructor)Construct string object (constructor member)operator=String assignment (public member function)
Iterators:
beginReturn iterator to beginning (public member function)endReturn iterator to end (public member function)rbeginReturn reverse iterator to reverse beginning (public member function)rendReturn reverse iterator to reverse end (public member function)Capacity:
sizeReturn length of string (public member function)lengthReturn length of string (public member function)max_sizeReturn maximum size of string (public member function)resizeResize string (public member function)capacityReturn size of allocated storage (public member function)reserveRequest a change in capacity (public member function)clearClear string (public member function)emptyTest if string is empty (public member function)Element access:
operator[]Get character in string (public member function)atGet character in string (public member function)Modifiers:
operator+=Append to string (public member function)appendAppend to string (public member function)push_backAppend character to string (public member function)assignAssign content to string (public member function)insertInsert into string (public member function)eraseErase characters from string (public member function)replaceReplace part of string (public member function)copyCopy sequence of characters from string (public member function)swapSwap contents with another string (public member function)String operations:
c_strGet C string equivalent (public member function)dataGet string data (public member function)get_allocatorGet allocator (public member function)findFind content in string (public member function)rfindFind last occurrence of content in string (public member function)find_first_ofFind character in string (public member function)find_last_ofFind character in string from the end (public member function)find_first_not_ofFind absence of character in stringfind_last_not_ofFind absence of character in string from the end (public member function)substrGenerate substring (public member function)compareCompare strings (public member function)
热心网友
时间:2023-11-09 09:06
string的成员函数
Member functions(constructor)Construct string object (constructor member)operator=String assignment (public member function)
Iterators:
beginReturn iterator to beginning (public member function)endReturn iterator to end (public member function)rbeginReturn reverse iterator to reverse beginning (public member function)rendReturn reverse iterator to reverse end (public member function)Capacity:
sizeReturn length of string (public member function)lengthReturn length of string (public member function)max_sizeReturn maximum size of string (public member function)resizeResize string (public member function)capacityReturn size of allocated storage (public member function)reserveRequest a change in capacity (public member function)clearClear string (public member function)emptyTest if string is empty (public member function)Element access:
operator[]Get character in string (public member function)atGet character in string (public member function)Modifiers:
operator+=Append to string (public member function)appendAppend to string (public member function)push_backAppend character to string (public member function)assignAssign content to string (public member function)insertInsert into string (public member function)eraseErase characters from string (public member function)replaceReplace part of string (public member function)copyCopy sequence of characters from string (public member function)swapSwap contents with another string (public member function)String operations:
c_strGet C string equivalent (public member function)dataGet string data (public member function)get_allocatorGet allocator (public member function)findFind content in string (public member function)rfindFind last occurrence of content in string (public member function)find_first_ofFind character in string (public member function)find_last_ofFind character in string from the end (public member function)find_first_not_ofFind absence of character in stringfind_last_not_ofFind absence of character in string from the end (public member function)substrGenerate substring (public member function)compareCompare strings (public member function)
热心网友
时间:2023-11-09 09:06
鼠标指着点进去这个类 看
热心网友
时间:2023-10-18 08:08
鼠标指着点进去这个类 看
热心网友
时间:2023-10-18 08:08
string的成员函数
Member functions(constructor)Construct string object (constructor member)operator=String assignment (public member function)
Iterators:
beginReturn iterator to beginning (public member function)endReturn iterator to end (public member function)rbeginReturn reverse iterator to reverse beginning (public member function)rendReturn reverse iterator to reverse end (public member function)Capacity:
sizeReturn length of string (public member function)lengthReturn length of string (public member function)max_sizeReturn maximum size of string (public member function)resizeResize string (public member function)capacityReturn size of allocated storage (public member function)reserveRequest a change in capacity (public member function)clearClear string (public member function)emptyTest if string is empty (public member function)Element access:
operator[]Get character in string (public member function)atGet character in string (public member function)Modifiers:
operator+=Append to string (public member function)appendAppend to string (public member function)push_backAppend character to string (public member function)assignAssign content to string (public member function)insertInsert into string (public member function)eraseErase characters from string (public member function)replaceReplace part of string (public member function)copyCopy sequence of characters from string (public member function)swapSwap contents with another string (public member function)String operations:
c_strGet C string equivalent (public member function)dataGet string data (public member function)get_allocatorGet allocator (public member function)findFind content in string (public member function)rfindFind last occurrence of content in string (public member function)find_first_ofFind character in string (public member function)find_last_ofFind character in string from the end (public member function)find_first_not_ofFind absence of character in stringfind_last_not_ofFind absence of character in string from the end (public member function)substrGenerate substring (public member function)compareCompare strings (public member function)
热心网友
时间:2023-10-18 08:08
string的成员函数
Member functions(constructor)Construct string object (constructor member)operator=String assignment (public member function)
Iterators:
beginReturn iterator to beginning (public member function)endReturn iterator to end (public member function)rbeginReturn reverse iterator to reverse beginning (public member function)rendReturn reverse iterator to reverse end (public member function)Capacity:
sizeReturn length of string (public member function)lengthReturn length of string (public member function)max_sizeReturn maximum size of string (public member function)resizeResize string (public member function)capacityReturn size of allocated storage (public member function)reserveRequest a change in capacity (public member function)clearClear string (public member function)emptyTest if string is empty (public member function)Element access:
operator[]Get character in string (public member function)atGet character in string (public member function)Modifiers:
operator+=Append to string (public member function)appendAppend to string (public member function)push_backAppend character to string (public member function)assignAssign content to string (public member function)insertInsert into string (public member function)eraseErase characters from string (public member function)replaceReplace part of string (public member function)copyCopy sequence of characters from string (public member function)swapSwap contents with another string (public member function)String operations:
c_strGet C string equivalent (public member function)dataGet string data (public member function)get_allocatorGet allocator (public member function)findFind content in string (public member function)rfindFind last occurrence of content in string (public member function)find_first_ofFind character in string (public member function)find_last_ofFind character in string from the end (public member function)find_first_not_ofFind absence of character in stringfind_last_not_ofFind absence of character in string from the end (public member function)substrGenerate substring (public member function)compareCompare strings (public member function)
热心网友
时间:2023-10-18 08:08
string的成员函数
Member functions(constructor)Construct string object (constructor member)operator=String assignment (public member function)
Iterators:
beginReturn iterator to beginning (public member function)endReturn iterator to end (public member function)rbeginReturn reverse iterator to reverse beginning (public member function)rendReturn reverse iterator to reverse end (public member function)Capacity:
sizeReturn length of string (public member function)lengthReturn length of string (public member function)max_sizeReturn maximum size of string (public member function)resizeResize string (public member function)capacityReturn size of allocated storage (public member function)reserveRequest a change in capacity (public member function)clearClear string (public member function)emptyTest if string is empty (public member function)Element access:
operator[]Get character in string (public member function)atGet character in string (public member function)Modifiers:
operator+=Append to string (public member function)appendAppend to string (public member function)push_backAppend character to string (public member function)assignAssign content to string (public member function)insertInsert into string (public member function)eraseErase characters from string (public member function)replaceReplace part of string (public member function)copyCopy sequence of characters from string (public member function)swapSwap contents with another string (public member function)String operations:
c_strGet C string equivalent (public member function)dataGet string data (public member function)get_allocatorGet allocator (public member function)findFind content in string (public member function)rfindFind last occurrence of content in string (public member function)find_first_ofFind character in string (public member function)find_last_ofFind character in string from the end (public member function)find_first_not_ofFind absence of character in stringfind_last_not_ofFind absence of character in string from the end (public member function)substrGenerate substring (public member function)compareCompare strings (public member function)
热心网友
时间:2023-10-18 08:08
string的成员函数
Member functions(constructor)Construct string object (constructor member)operator=String assignment (public member function)
Iterators:
beginReturn iterator to beginning (public member function)endReturn iterator to end (public member function)rbeginReturn reverse iterator to reverse beginning (public member function)rendReturn reverse iterator to reverse end (public member function)Capacity:
sizeReturn length of string (public member function)lengthReturn length of string (public member function)max_sizeReturn maximum size of string (public member function)resizeResize string (public member function)capacityReturn size of allocated storage (public member function)reserveRequest a change in capacity (public member function)clearClear string (public member function)emptyTest if string is empty (public member function)Element access:
operator[]Get character in string (public member function)atGet character in string (public member function)Modifiers:
operator+=Append to string (public member function)appendAppend to string (public member function)push_backAppend character to string (public member function)assignAssign content to string (public member function)insertInsert into string (public member function)eraseErase characters from string (public member function)replaceReplace part of string (public member function)copyCopy sequence of characters from string (public member function)swapSwap contents with another string (public member function)String operations:
c_strGet C string equivalent (public member function)dataGet string data (public member function)get_allocatorGet allocator (public member function)findFind content in string (public member function)rfindFind last occurrence of content in string (public member function)find_first_ofFind character in string (public member function)find_last_ofFind character in string from the end (public member function)find_first_not_ofFind absence of character in stringfind_last_not_ofFind absence of character in string from the end (public member function)substrGenerate substring (public member function)compareCompare strings (public member function)
热心网友
时间:2023-10-18 08:08
鼠标指着点进去这个类 看
热心网友
时间:2023-10-18 08:08
鼠标指着点进去这个类 看
热心网友
时间:2023-10-18 08:08
鼠标指着点进去这个类 看
热心网友
时间:2023-10-18 08:08
鼠标指着点进去这个类 看