About 24,900 results
Open links in new tab
  1. String Functions in C++ - GeeksforGeeks

    Apr 24, 2025 · In C++, a stream/sequence of characters is stored in a char array. C++ includes the std::string class that is used to represent strings. It is one of the most fundamental datatypes in C++ and it comes with a huge set of inbuilt functions. In this article, will look at the functions of string computations. What is std::string?

  2. string - C++ Users

    Strings are objects that represent sequences of characters. The standard string class provides support for such objects with an interface similar to that of a standard container of bytes, but adding features specifically designed to operate with strings of single-byte characters.

  3. <strings> library in C++ STL - GeeksforGeeks

    Aug 21, 2024 · The std::string::size() function in C++ is a built-in method of the std::string class that is used to determine the number of characters in the string. All characters up to the null character are considered while calculating the size of the string.

  4. C++ string Library Reference (string functions) - W3Schools

    C++ string Functions. The <string> library has many functions that allow you to perform tasks on strings. A list of popular string functions can be found in the table below.

  5. std::string class in C++ - GeeksforGeeks

    Jan 11, 2025 · String class defines a number of functionalities that allow manifold operations on strings. Character arrays do not offer many inbuilt functions to manipulate strings. This function is used to store a stream of characters as entered by the user in the object memory. This function is used to input a character at the end of the string.

  6. std::basic_string - cppreference.com

    Nov 10, 2024 · class Traits =std::char_traits< CharT >>using basic_string = std::basic_string< CharT, Traits, std::pmr::polymorphic_allocator< CharT >>; The class template basic_string stores and manipulates sequences of character -like objects, which are non-array objects of TrivialType and StandardLayoutType.

  7. Strings library - cppreference.com

    Nov 27, 2024 · String creation, manipulation, and destruction are all handled by a convenient set of class methods and related functions. The class template std::basic_string_view provides a lightweight object that offers read-only access to a string or a part of a string using an interface similar to the interface of std::basic_string.

    Missing:

    • STL

    Must include:

  8. std::string - C++ standard library - Cprogramming.com

    C++ provides a simple, safe alternative to using char*s to handle strings. The C++ string class, part of the std namespace, allows you to manipulate strings safely. String I/O is easy, as strings are supported by cin.

  9. C++ String Class - Programiz

    We can access the various string class functions by including the <string> header in our file. The common functions that are used with the string class are. Find a substring in the string. Find the last occurrence of a substring in the string. Append to the string. Insert into the string. Erase characters from the string.

  10. String Class in C++ Standard Template Library (STL) - Learning …

    Jan 6, 2024 · In this blog post, we will go through String class in STL, exploring its features, functionalities, and demonstrating code examples to highlight its usefulness. String class in the STL provides a convenient way to handle and manipulate strings of characters in C++.

  11. Some results have been removed
Refresh