約5,000件1ページ目

日本語のみで絞り込む

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

  • 最終更新日:3か月以内
  • 2026/8/24 -概要. 文字列が空か判定する。 戻り値. size() == 0 の評価結果。 例外. 投げ ...

    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/31 -If pos is equal to the string length, an empty string is returned. If pos is greater than the string length, std::out_of_range is thrown. If count exceeds ...

    2026/9/22 -How std::getline reads a full line into a std::string: using it with cin, why it returns an empty string after cin >>, the cin.ignore and std::ws fixes ...

    2026/9/21 -A std::string 's internal buffer is always null terminated (the \0 lives one past the last character), which is why std::string::c_str() is a constant-time read ...

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

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

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

    2026/9/28 -You could assume that an empty string would work here, but knowing if a user entered something or not might be important. With std::optional<std::string> you ...

    2026/11/12 -Throws parse_error.101 in case of an unexpected token, or empty input like a null FILE* or char* pointer, or an std ...

    2026/11/12 -The solution is to remove needless backslashes from your regular expressions. Backreferences to non-participating groups match the empty string in Dinkumware ...

    2026/9/11 -C++ ; 1#include <ser_std_string.h> ; 2#include <iostream> ; 3#include <string> ; 4 ; 5// This example shows how to serialize a component with an std::string.