約30,700,000件1ページ目

日本語のみで絞り込む

関連検索ワード

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

The class template basic_string stores and manipulates sequences of character-like objects, which are non-array objects of TrivialType and StandardLayoutType.

2026/7/16 -The std::string class is the standard C++ library class used to represent and manipulate strings. It automatically manages memory, making string ...

2023/4/5 -std::string is not like other basic string objects in many systems, it's a mutable string buffer. It's a value type. Each assignment gets a full ...

2025/7/17 -One main reason to use std::string is that it manages its memory automatically and frees it when the object is destroyed. It also has convenient ...

2025/10/7 -The Standard C++ string is a container that enables the use of strings as normal types, such as comparison and concatenation operations, ...

A.特に文字コードが決まっている訳では有りません。std::stringは8ビットの1バイト単位で std::wstringはその2倍の16ビット単位の文字コードを扱う意味です。

A.ええ出来ますよ。 std::ostringstream を使うと良いです。 ~例~ #include <iostream> #include <iomanip> #include <sstream> #include <ctime> using namespace std; int main() { const time_t t = time(nullptr); const string s = static_cast<ostringstream&&>(ostringstream() << std::put_time(localtime(&t), "%Y/%m/%d")).str(); cout<< s << endl; }

2015/5/8 -The easiest way to work with strings and string objects in C++ is via the std::string type, which lives in the <string> header.

2010/10/19 -std::string is actually a typedef to a std::basic_string. Its a template in order to make basic_string work with pretty much anything.

2022/1/31 -What is a String? Strings, at their core, are essentially collections of characters. Some examples include "Hello World", "My name is Bob", and ...

This module contains the String type, the ToString trait for converting to strings, and several error types that may result from working with String s. § ...

関連検索ワード