2008-11-01から1ヶ月間の記事一覧
C++でconst unsigned char*型の文字列をstring型に変換するときのメモconst unsigned char *tmp = "hoge"; string str = (reinterpret_cast(tmp));C++でのキャストのメモ static_cast - 静的な普通の型変換 reinterpret_cast - ポインタや参照の関係する強引…
C++でconst unsigned char*型の文字列をstring型に変換するときのメモconst unsigned char *tmp = "hoge"; string str = (reinterpret_cast(tmp));C++でのキャストのメモ static_cast - 静的な普通の型変換 reinterpret_cast - ポインタや参照の関係する強引…