約26,900件1ページ目

日本語のみで絞り込む

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:1年以内
  • 2026/5/29 -std::string::replace() in C++ · It can replace characters, substrings, or ranges of characters. · It supports replacement using indexes as well as iterators.

    2026/11/10 -The replace() function replaces a part of a string with new text. You choose the part with a start position and a length. The new text does not need to have the ...

    2026/8/25 -Strings in C++ tutorial covering std::string creation, input, indexing, editing, search, common errors, output tracing, and fully runnable C++17 examples.

    2026/1/7 -You can use the std::string method replace() . This method takes three arguments: the starting index of the replacement, the length of the substring to ...

    2026/8/26 -Given a string and two characters c1 and c2, replace every occurrence of c1 with c2 and every occurrence of c2 with c1. There are two approaches to perform ...

    2026/6/24 -C++ Strings ; s.length() s.size(), return number of characters in the string ; s.replace(index, len, str), replace len chars at given index with new text ; s.

    2025/11/25 -C++ Exercises, Practice and Solution: Write a C++ program that removes a specific word from a given string. Return the updated string.

    2026/7/9 -To create temporary or static std::string values, you can use string literals or raw string literals with an s suffix. For more information on the basic source ...

    2026/3/11 -In one operation, we can select any character of the string and change it to any other uppercase letters. We have to find the length of the longest sub-string ...

    2026/6/18 -C++ string manipulation for interviews: std::string vs string_view, the size_t trap, tolower pitfalls, and three O(n) patterns that win most problems.