📜  c++ 字符串 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.081000             🧑  作者: Mango

代码示例2
#include 
std::begin        | returns an iterator to the beginning of a container 
std::end        | returns an iterator to the end of a container 
std::size        | returns the length of string
std::to_string    | converts a number to string
std::stoi        | converts a string to a signed integer
std::getline     | read data from an I/O stream into a string
std::swap          | specializes the std::swap algorithm
std::empty         | checks whether the container is empty