Boost C++ Libraries ...one of the most highly regarded and expertly designed C++ library projects in the world. — Herb Sutter and Andrei Alexandrescu, C++ Coding Standards Welcome to Boost.org! Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work well with the C++ Standard Library. Boost libraries are intended to be widely useful, and usable across a br
[戻る] sunyopu 2004/11/05(金) 23:20:02 現在携わっている仕事(環境:WinXP,VC++6.0)で、 あるプログラムを作成しているのですが、 移植性を高めるためにMFCを使用しないという ルールになっています。 普段、文字列操作には MFC の CString を使用しているのですが、 今回は STL の string を使っています。 大半は不自由ないのですが、 数値を文字列にする場合、以下のような手法しか 分からず多少面倒です。 char caWork[100]; sprintf(caWork, "%d %s … ", 11111, "aaaa", …); string strWork = caWork; CString の場合は、CString::Format() で バッファサイズを意識することもなく簡潔に記述できるのですが、 string でも
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く