エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
C++0x ライブラリ - Numeric Conversion - Faith and Brave - C++で遊ぼう
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
C++0x ライブラリ - Numeric Conversion - Faith and Brave - C++で遊ぼう
atoiのような標準の型変換関数に、std::basic_stringを引数にするものが追加される string str = "abc";... atoiのような標準の型変換関数に、std::basic_stringを引数にするものが追加される string str = "abc"; int value = atoi(str.c_str()); int value = stoi(str); これらの関数は内で定義される int stoi(const string& str, size_t *idx = 0, int base = 10); long stol(const string& str, size_t *idx = 0, int base = 10); unsigned long stoul(const string& str, size_t *idx = 0, int base = 10); long long stoll(const string& str, size_t *idx = 0, int base = 10)