char[]のstd::arrayでの置き換え master 4年前 char[10] str{}; printf("%s", str); といったコードは std::array<char, 10> str{}; printf("%s", str.data()); で置き換えることができる。