2005-02-22から1日間の記事一覧
文字列中の"\n"を改行コードの変換する必要があったので、STLを使って書いてみた。"\n"は2文字の¥とnであって、改行文字のリテラルではないです。 std::string YennToCR(std::string s) { std::string YenN = "\\n"; std::string CR = "\n"; std::string:…
文字列中の"\n"を改行コードの変換する必要があったので、STLを使って書いてみた。"\n"は2文字の¥とnであって、改行文字のリテラルではないです。 std::string YennToCR(std::string s) { std::string YenN = "\\n"; std::string CR = "\n"; std::string:…