次のように文字列を初期化します。
std::string myString = "'The quick brown fox jumps over the lazy dog' is an English-language pangram (a phrase that contains all of the letters of the alphabet)";
myString は次のように切り捨てられます。
「ザ・クイック・ブラウン・フォックス・ジャンプ・オーバー・ザ・レイジー・ドッグ」は英語のパングラム(
サイズ制限はどこで設定できますか? 私は成功せずに次のことを試しました:
std::string myString;
myString.resize(300);
myString = "'The quick brown fox jumps over the lazy dog' is an English-language pangram (a phrase that contains all of the letters of the alphabet)";
どうもありがとう!