約6,540件1ページ目

日本語のみで絞り込む

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

  • 最終更新日:6か月以内
  • 2026/7/17 -std::string::clear in C++ · Makes the string empty by removing all stored characters. · Commonly used before storing new data in the same string object.

    2026/6/4 -But an empty string has size 0 and no data. An empty c-string would at least have a null termination character '\0' which many functions look for when consuming ...

    2026/8/25 -Calling front() or back() on an empty string is also invalid, so first check if (!s.empty()) . After std::cin >> age , plain std::getline(std::cin, fullName) ...

    2026/11/10 -The clear() function removes all characters from a string. After this, the string is empty, and its length is 0 . The clear function is defined in the <string> ...

    2026/8/24 -概要. 文字列が空か判定する。 戻り値. size() == 0 の評価結果。 例外. 投げ ...

    2026/8/5 -CPP. String Cheat Sheet. Construction / Initialization¶. std::string(); // empty string std::string("hello"); // from C-string std::string(5, 'A'); // "AAAAA ...

    A.cv::imread(image,1) ここ? imageは文字列じゃないとダメ。 imageはIplImage? そのまま、 search_imgに渡せば? IplImage→matは変換...

    A.> while( cin >> word ) > から抜けそのまま次の命令に進むにはどうしたらよいでしょうか? コンソール入力をどうすればいいかの質問なの? EOF にす...

    A.>namatyavisionさん 同じ関数を使って、ネットの元ファイルは上手く動作して、それを変更した物が動作していないので、プログラムに問題あるのは間違いないと思います。 関数に渡...

    2026/7/16 -Explanation: str1 and str2 are initialized with values, while str3 is an empty string. Common String Operations. The std::string class provides several member ...

    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.

    2026/7/25 -Finds the first substring equal to the character string pointed to by s . The length of the string is determined by the first null character. The text has ...

    2026/7/2 -C-strings are null-terminated char arrays inherited from C; avoid them in favour of std::string . std::string provides rich methods: length , substr , find ...