約4,840件1ページ目

日本語のみで絞り込む

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

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

    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/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 ...

    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 ...

    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/9/4 -Learn how to use the substr() function in C++ to extract parts of strings. Includes syntax, parameters, examples, and advanced applications like overlapping ...

    2026/8/23 -Empty string and a null string are different things. Str{} is null ( s == nullptr , len == 0 ). That matters, so StrVec can store both ...

    6日前 -If the option is unset, the function receives an empty string and should either return a meaningful default value or throw std::invalid_argument . Note. The ...