<?xml version="1.0" encoding="UTF-8" ?>
<rss version="0.91">
  <channel>
    <title>Ace メモ・備忘録 Blog</title>
    <description>メモ、備忘録、その他雑記を記載します。
ただし、このＨＰに記載している情報を利用した結果 損失・損害等が発生したとしても筆者は責任を持ちません。
</description>
    <link>https://acepg.blog.shinobi.jp/</link>
    <language>ja</language>
    <copyright>Copyright (C) NINJATOOLS ALL RIGHTS RESERVED.</copyright>

    <item>
      <title>STL std::stringの文字列の抽出(substr())</title>
      <description>&lt;div&gt;STLのstringでsubstr()を使って文字列を抽出するサンプルです。&lt;br /&gt;
※環境&lt;br /&gt;
　WindowsXP sp3&lt;br /&gt;
　VC6.0 sp6&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;#include &amp;lt;string&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;int main()&lt;/div&gt;
&lt;div&gt;{&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; std::string str;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; std::string strRet;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; str = &quot;1234567890&quot;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; strRet = str.substr(1);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; printf(&quot;str &amp;nbsp; &amp;nbsp;= \&quot;%s\&quot;\n&quot;, str.c_str());&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; printf(&quot;strRet = \&quot;%s\&quot;\n&quot;, strRet.c_str());&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;// 実行結果&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;// str &amp;nbsp; &amp;nbsp;= &quot;1234567890&quot;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;// strRet = &quot;234567890&quot;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; strRet = str.substr(2, 3);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; printf(&quot;str &amp;nbsp; &amp;nbsp;= \&quot;%s\&quot;\n&quot;, str.c_str());&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; printf(&quot;strRet = \&quot;%s\&quot;\n&quot;, strRet.c_str());&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; printf(&quot;\n&quot;);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;// 実行結果&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;// str &amp;nbsp; &amp;nbsp;= &quot;1234567890&quot;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;// strRet = &quot;345&quot;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; // ！！！以下は実行時エラーが発生！！！&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; // strRet = str.substr(100);&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; // printf(&quot;str &amp;nbsp; &amp;nbsp;= \&quot;%s\&quot;\n&quot;, str.c_str());&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; // printf(&quot;strRet = \&quot;%s\&quot;\n&quot;, strRet.c_str());&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; // printf(&quot;\n&quot;);&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; getchar();&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;/div&gt;
&lt;div&gt;}&lt;/div&gt;
&lt;div&gt;　&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;</description> 
      <link>https://acepg.blog.shinobi.jp/c--/stl%20std--string%E3%81%AE%E6%96%87%E5%AD%97%E5%88%97%E3%81%AE%E6%8A%BD%E5%87%BA-substr---</link> 
    </item>
    <item>
      <title>[GetPointColor]デスクトップの色を取得</title>
      <description>フリーソフトの紹介です。&lt;br /&gt;
&lt;br /&gt;
名前：GetPointColor&lt;br /&gt;
機能：デスクトップで、マウスをドラッグしている位置の色を取得します。&lt;br /&gt;
　　　※おまけの機能で、マウスの座標を表示するようにしました。&lt;br /&gt;
&lt;a href=&quot;http://file.acepg.blog.shinobi.jp/GetPointColor.png&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://file.acepg.blog.shinobi.jp/Img/1373760282/&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
　図：Windowsのカラーパレットの色を取得&lt;br /&gt;
&lt;br /&gt;
HP作成支援などにどうぞ。&lt;br /&gt;
&lt;br /&gt;
ダウンロードはこちらから。&lt;br /&gt;
　&lt;a href=&quot;http://www42.tok2.com/home/gimmegifts/pcx_soft/index.html#GetPointColor&quot;&gt;GetPointColor&lt;br /&gt;
&lt;/a&gt;　&lt;br /&gt;
</description> 
      <link>https://acepg.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/-getpointcolor-%E3%83%87%E3%82%B9%E3%82%AF%E3%83%88%E3%83%83%E3%83%97%E3%81%AE%E8%89%B2%E3%82%92%E5%8F%96%E5%BE%97</link> 
    </item>
    <item>
      <title>メモ　MTVX2005USBを起動すると初期化に失敗しましたと表示される</title>
      <description>ちょっとした用事で地上アナログ波（デジタルでなく）をキャプチャする必要があった為、現時点で地上アナログ波をキャプチャする方法を検討してみる。&lt;br /&gt;
&lt;br /&gt;
現在店頭に並んでいるTVキャプチャユニットはほぼすべて地上デジタル専用になっており、地上アナログキャプチャができない。&lt;br /&gt;
&lt;br /&gt;
手元にMTVX2005USBがあるのだが、いつからか、起動すると初期化に失敗しましたとエラーが表示されTVモードが使用できなくなってしまっていた。捨てようかと半ばあきらめていたが、一念発起し悪あがきしたところ、以下の方法によりエラーが出なくなり、TVモードで視聴ができるようになったのでその方法を記録しておく。&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;lh120&quot;&gt;　1.「FEATHER2005&amp;rarr;FEATHER2005 V2アップデータ」をインストールする。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;lh120&quot;&gt;　　　この時点でFeatherを起動すると、初期化に失敗しましたと表示されTVモードが使用できない。&lt;br /&gt;
　&lt;br /&gt;
　2.再度、「FEATHER2005&amp;rarr;FEATHER2005 V2アップデータ」をインストールする。（修復）&lt;/span&gt;&lt;br /&gt;
　　　インストール途中で、なぜかCDライティングソフト「NERO」関連プログラムの&lt;br /&gt;
　　　インストールが始まる。ウィザードに従い、OK、OKと進めていく。&lt;br /&gt;
　　　インストールが完了すると、TVモードが使用可能になっていた。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
追記&lt;br /&gt;
MTVX2005USBで録画したファイルの拡張子が&lt;br /&gt;
「m2d」となり、再生ができない現象が発生した。&lt;br /&gt;
　エラーメッセージ&lt;br /&gt;
　&quot;(録画したファイル名)&quot;&lt;br /&gt;
　再生に失敗しました。&lt;br /&gt;
&lt;br /&gt;
ググったところ、以下の情報を見つけた為&lt;br /&gt;
記録しておく。&lt;br /&gt;
&lt;a href=&quot;http://lene.blog4.fc2.com/blog-date-200508.html&quot;&gt;http://lene.blog4.fc2.com/blog-date-200508.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://blog-imgs-18.fc2.com/l/e/n/lene/m2dconv.zip.mp3&quot; target=&quot;_blank&quot;&gt;m2dconv.zip&lt;/a&gt;
&lt;script type=&quot;text/javascript&quot;&gt;google_ad_client = &quot;ca-pub-7965862503002014&quot;;
/* 広告 */
google_ad_slot = &quot;3695350487&quot;;
google_ad_width = 728;
google_ad_height = 90;&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</description> 
      <link>https://acepg.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/%E3%83%A1%E3%83%A2%E3%80%80mtvx2005usb%E3%82%92%E8%B5%B7%E5%8B%95%E3%81%99%E3%82%8B%E3%81%A8%E5%88%9D%E6%9C%9F%E5%8C%96%E3%81%AB%E5%A4%B1%E6%95%97</link> 
    </item>
    <item>
      <title>目次</title>
      <description>目次　(随時更新)&lt;br /&gt;
&lt;br /&gt;
[フリーソフト]&lt;br /&gt;
・&lt;a href=&quot;http://acepg.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/-getpointcolor-%E3%83%87%E3%82%B9%E3%82%AF%E3%83%88%E3%83%83%E3%83%97%E3%81%AE%E8%89%B2%E3%82%92%E5%8F%96%E5%BE%97&quot;&gt;GetPointColor　デスクトップの色を取得&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[java]&lt;br /&gt;
・&lt;a href=&quot;http://acepg.blog.shinobi.jp/java/-java-socket%E9%80%9A%E4%BF%A1%20%E3%82%B5%E3%83%BC%E3%83%90%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB&quot;&gt;socket通信 サーバサンプル&lt;/a&gt;&lt;br /&gt;
・&lt;a href=&quot;http://acepg.blog.shinobi.jp/java/-java-socket%E9%80%9A%E4%BF%A1%20%E3%82%AF%E3%83%A9%E3%82%A4%E3%82%A2%E3%83%B3%E3%83%88%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB&quot;&gt;socket通信 クライアントサンプル&lt;/a&gt;&lt;br /&gt;
・&lt;a href=&quot;http://acepg.blog.shinobi.jp/java/-java-%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0&quot;&gt;ライフゲーム&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[linux]&lt;br /&gt;
・&lt;a href=&quot;http://acepg.blog.shinobi.jp/linux/winxp%E3%81%AE%E4%BB%A3%E3%82%8F%E3%82%8A%E3%81%AEos%E3%82%92%E6%8E%A2%E3%81%97%E3%81%A6linux%20mint&quot;&gt;WinXPの代わりのOSを探してLinux Mint14に辿り着いた&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[C/C++]&lt;br /&gt;
・&lt;a href=&quot;http://acepg.blog.shinobi.jp/c--/-c---%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%B5%E3%82%A4%E3%82%BA%E5%8F%96%E5%BE%97&quot;&gt;ファイルサイズ取得&lt;/a&gt;&lt;br /&gt;
・&lt;a href=&quot;http://acepg.blog.shinobi.jp/c--/-c-c---%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%8B%E3%82%891%E8%A1%8C%E8%AA%AD%E8%BE%BC-std-&quot;&gt;テキストファイルから1行読込(std::getline)&lt;br /&gt;
&lt;/a&gt;・&lt;a href=&quot;http://acepg.blog.shinobi.jp/c--/-c-c---%E3%83%90%E3%82%A4%E3%83%8A%E3%83%AA%E3%83%87%E3%83%BC%E3%82%BFread-write&quot;&gt;バイナリデータRead/Write&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
　MFC&lt;br /&gt;
・&lt;a href=&quot;http://acepg.blog.shinobi.jp/vc/-vc-%E6%8E%92%E4%BB%96%E5%88%B6%E5%BE%A1-cmutex%E3%81%AA%E3%81%A9-&quot;&gt;排他制御(CMutexなど)&lt;br /&gt;
&lt;/a&gt;・&lt;a href=&quot;http://acepg.blog.shinobi.jp/vc/-vc-clistctrl%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95&quot;&gt;CListCtrl使用方法&lt;/a&gt;&lt;br /&gt;
・&lt;a href=&quot;http://acepg.blog.shinobi.jp/vc/dll%E4%BD%9C%E6%88%90%E6%96%B9%E6%B3%95&quot;&gt;DLL作成方法&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
　STL&lt;br /&gt;
・&lt;a href=&quot;http://acepg.blog.shinobi.jp/c--/-c---stl%20std--string%E3%81%AE%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88&quot;&gt;STL std::stringのフォーマット&lt;br /&gt;
&lt;/a&gt;・&lt;a href=&quot;http://acepg.blog.shinobi.jp/c--/stl%20std--string%E3%81%AE%E6%96%87%E5%AD%97%E5%88%97%E3%81%AE%E6%8A%BD%E5%87%BA-substr---&quot; title=&quot;&quot;&gt;STL std::stringの文字列の抽出(substr())&lt;/a&gt;&lt;br /&gt;
・&lt;a href=&quot;http://acepg.blog.shinobi.jp/c--/-c---stl%20map&quot;&gt;STL map&lt;br /&gt;
&lt;br /&gt;
&lt;/a&gt;</description> 
      <link>https://acepg.blog.shinobi.jp/%E7%9B%AE%E6%AC%A1/%E7%9B%AE%E6%AC%A1</link> 
    </item>
    <item>
      <title>[java]ライフゲーム</title>
      <description>&lt;div&gt;ライフゲームにはまった。&lt;/div&gt;
&lt;div&gt;ライフゲームとは、生物の生命の誕生、進化、淘汰などのプロセスを簡易的なモデルで再現したシミュレーションゲームのこと。&lt;br /&gt;
&lt;a href=&quot;http://file.acepg.blog.shinobi.jp/7546ac5d.png&quot; title=&quot;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://file.acepg.blog.shinobi.jp/Img/1374279948/&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
※以下はライフゲームを取り上げたページ。&lt;/div&gt;
&lt;div&gt;　Lifeゲームって、知っていますか？&lt;/div&gt;
&lt;div&gt;　http://allabout.co.jp/gm/gc/80611/&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
～　下に続く　～&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://acepg.blog.shinobi.jp/java/-java-%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0&quot; target=&quot;_blank&quot;&gt;つづきはこちら&lt;/a&gt;</description> 
      <link>https://acepg.blog.shinobi.jp/java/-java-%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0</link> 
    </item>
    <item>
      <title>[mac]iPhotoの自動起動を解除</title>
      <description>&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
iPhoneをMacBookProに繋いだときに毎回iPhotoが起動し、&lt;br /&gt;
本来したいこと(プログラム転送)をするのに時間が掛かったので、&lt;br /&gt;
それを解除する方法のメモ。&lt;br /&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	～　下に続く　～&lt;/div&gt;
&lt;br /&gt;&lt;a href=&quot;https://acepg.blog.shinobi.jp/mac/-mac-iphoto%E3%81%AE%E8%87%AA%E5%8B%95%E8%B5%B7%E5%8B%95%E3%82%92%E8%A7%A3%E9%99%A4&quot; target=&quot;_blank&quot;&gt;つづきはこちら&lt;/a&gt;</description> 
      <link>https://acepg.blog.shinobi.jp/mac/-mac-iphoto%E3%81%AE%E8%87%AA%E5%8B%95%E8%B5%B7%E5%8B%95%E3%82%92%E8%A7%A3%E9%99%A4</link> 
    </item>
    <item>
      <title>WinXPの代わりのOSを探してLinux Mint14に辿り着いた</title>
      <description>&lt;div&gt;
&lt;div&gt;
&lt;div&gt;WinXPのサポートが2014/04/09に切れることと、&lt;br /&gt;
手元にあるWinXPの中古PCを有効利用することを考えた。&lt;br /&gt;
WinXP以外のOSでWinXP(クラシックモード)にできるだけ&lt;br /&gt;
近い状態で使える方法はないかと探し、「Linux Mint14」に&lt;br /&gt;
辿り着いた。&lt;br /&gt;
&lt;br /&gt;
以下、その時のメモ。&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;・見た目をWinXP(クラシックモード)っぽくするには&lt;br /&gt;
・WinXPで使っていたソフトの代わりを検討&lt;br /&gt;
・etc..&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
～　下に続く　～&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://acepg.blog.shinobi.jp/linux/winxp%E3%81%AE%E4%BB%A3%E3%82%8F%E3%82%8A%E3%81%AEos%E3%82%92%E6%8E%A2%E3%81%97%E3%81%A6linux%20mint&quot; target=&quot;_blank&quot;&gt;つづきはこちら&lt;/a&gt;</description> 
      <link>https://acepg.blog.shinobi.jp/linux/winxp%E3%81%AE%E4%BB%A3%E3%82%8F%E3%82%8A%E3%81%AEos%E3%82%92%E6%8E%A2%E3%81%97%E3%81%A6linux%20mint</link> 
    </item>
    <item>
      <title>[C/C++]16進文字列を数値に変換</title>
      <description>strtol(),strtoul()を使用する。&lt;br /&gt;
&lt;br /&gt;
例&lt;br /&gt;
&lt;div&gt;
	ULONG ul = 0;&lt;/div&gt;
&lt;div&gt;
	ul = strtoul(&amp;quot;64&amp;quot;, NULL, 16);&lt;/div&gt;
&lt;div&gt;
	&lt;br /&gt;
	// これで ul には 0x64 (つまり100) が入る&lt;br /&gt;
	&amp;nbsp;&lt;/div&gt;
</description> 
      <link>https://acepg.blog.shinobi.jp/c--/-c-c---16%E9%80%B2%E6%96%87%E5%AD%97%E5%88%97%E3%82%92%E6%95%B0%E5%80%A4%E3%81%AB%E5%A4%89%E6%8F%9B</link> 
    </item>
    <item>
      <title>[C++]STL for_each文を作ってみた</title>
      <description>&lt;div&gt;
	#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
	#include &amp;lt;list&amp;gt;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	#define for_each(it, con)&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;for (it = con.begin(); it != con.end(); it++)&lt;/div&gt;
&lt;div&gt;
	#define LIST_INT&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;std::list&amp;lt;int&amp;gt;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	int main()&lt;/div&gt;
&lt;div&gt;
	{&lt;/div&gt;
&lt;div&gt;
	LIST_INT lstInt;&lt;/div&gt;
&lt;div&gt;
	LIST_INT::iterator it;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	lstInt.push_back(1);&lt;/div&gt;
&lt;div&gt;
	lstInt.push_back(4);&lt;/div&gt;
&lt;div&gt;
	lstInt.push_back(7);&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	for_each (it, lstInt) {&lt;/div&gt;
&lt;div&gt;
	printf(&amp;quot;%d\n&amp;quot;, *it);&lt;/div&gt;
&lt;div&gt;
	}&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	getchar();&lt;/div&gt;
&lt;div&gt;
	return 0;&lt;/div&gt;
&lt;div&gt;
	}&lt;/div&gt;
&lt;div&gt;
	&lt;br /&gt;
	&lt;br /&gt;
	// 処理結果&lt;br /&gt;
	1&lt;br /&gt;
	4&lt;br /&gt;
	7&lt;br /&gt;
	&amp;nbsp;&lt;/div&gt;
</description> 
      <link>https://acepg.blog.shinobi.jp/c--/-c---stl%20for_each%E6%96%87%E3%82%92%E4%BD%9C%E3%81%A3%E3%81%A6%E3%81%BF%E3%81%9F</link> 
    </item>
    <item>
      <title>[C++]STL std::stringのフォーマット</title>
      <description>&lt;div&gt;
	#include &amp;lt;string&amp;gt;&lt;/div&gt;
&lt;div&gt;
	#include &amp;lt;sstream&amp;gt;&lt;/div&gt;
&lt;div&gt;
	#include &amp;lt;iomanip&amp;gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;// setfill, setwなどのフォーマット指定&lt;br /&gt;
	&lt;br /&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	std::string str;&lt;/div&gt;
&lt;div&gt;
	std::ostringstream stream;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	stream.str(&amp;quot;&amp;quot;);&lt;/div&gt;
&lt;div&gt;
	stream &amp;lt;&amp;lt; &amp;quot;[0x&amp;quot;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp; &amp;lt;&amp;lt; std::setfill(&amp;#39;0&amp;#39;)&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;// &amp;#39;0&amp;#39;埋め&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp; &amp;lt;&amp;lt; std::setw(8)&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;// &amp;nbsp;8桁&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp; &amp;lt;&amp;lt; std::hex&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;// &amp;nbsp;16進&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp; &amp;lt;&amp;lt; 100&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;// &amp;nbsp;100&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp; &amp;lt;&amp;lt; &amp;quot;]&amp;quot;;&lt;/div&gt;
&lt;div&gt;
	str = stream.str();&lt;/div&gt;
&lt;div&gt;
	printf(&amp;quot;%s&amp;quot;, str.c_str());&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
	// 表示結果&lt;br /&gt;
	[0x00000064]&lt;br /&gt;
	&amp;nbsp;&lt;/div&gt;
</description> 
      <link>https://acepg.blog.shinobi.jp/c--/-c---stl%20std--string%E3%81%AE%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88</link> 
    </item>

  </channel>
</rss>