エントリーの編集
![loading...](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/common/loading@2x.gif)
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
![アプリのスクリーンショット](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/entry/app-screenshot.png)
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
letsboost::lexical_cast
sample サンプルの動作確認バージョン [GCC4.4/1.41.0] [VC9/1.41.0] #include <string> #include <boos... sample サンプルの動作確認バージョン [GCC4.4/1.41.0] [VC9/1.41.0] #include <string> #include <boost/lexical_cast.hpp> using namespace std; int main() { using boost::lexical_cast; string str_thousand = "1000"; int int_ninety = 90; int a = lexical_cast<int>( str_thousand ); string s = lexical_cast<string>( int_ninety ); // aには1000、sには"90"が入ります。 return 0; } なお、変換出来ない場合は bad_lexical_cast 例外が投げられますので、 ホントはちゃんと try~ca
2008/05/09 リンク