<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>甘いもの好きの日記</title>
<link>https://ameblo.jp/lovemyfare/</link>
<atom:link href="https://rssblog.ameba.jp/lovemyfare/rss20.xml" rel="self" type="application/rss+xml" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
<description>ガラクタみたいなプログラム初心者。いつでもHelp meで新人戦。</description>
<language>ja</language>
<item>
<title>paiza STEP: 2 盤面の情報変更</title>
<description>
<![CDATA[ <p>&nbsp;</p><p>前回</p><p>&nbsp;</p><p>&nbsp;</p><div class="ogpCard_root"><article class="ogpCard_wrap" contenteditable="false" style="display:inline-block;max-width:100%"><a class="ogpCard_link" data-ogp-card-log="" href="https://ameblo.jp/lovemyfare/entry-12687141405.html" rel="noopener noreferrer" style="display:flex;justify-content:space-between;overflow:hidden;box-sizing:border-box;width:620px;max-width:100%;height:120px;border:1px solid #e2e2e2;border-radius:4px;background-color:#fff;text-decoration:none" target="_blank"><span class="ogpCard_content" style="display:flex;flex-direction:column;overflow:hidden;width:100%;padding:16px"><span class="ogpCard_title" style="-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;max-height:48px;line-height:1.4;font-size:16px;color:#333;text-align:left;font-weight:bold;overflow:hidden">『paiza STEP: 1 盤面の情報取得 C++ 作成』</span><span class="ogpCard_description" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6;margin-top:4px;color:#757575;text-align:left;font-size:12px">ほんとにかなり久しぶりにpaiza(笑)&nbsp;三日坊主すぎだけど今度からちゃんとやります。。。&nbsp;&nbsp;というわけで今日はこの問題&nbsp;”Aランクレベルアップメニュー”から…</span><span class="ogpCard_url" style="display:flex;align-items:center;margin-top:auto"><span class="ogpCard_iconWrap" style="position:relative;width:20px;height:20px;flex-shrink:0"><img alt="リンク" class="ogpCard_icon" height="20" loading="lazy" src="https://c.stat100.ameba.jp/ameblo/symbols/v3.20.0/svg/gray/editor_link.svg" style="position:absolute;top:0;bottom:0;right:0;left:0;height:100%;max-height:100%" width="20"></span><span class="ogpCard_urlText" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#757575;font-size:12px;text-align:left">ameblo.jp</span></span></span><span class="ogpCard_imageWrap" style="position:relative;width:120px;height:120px;flex-shrink:0"><img alt="" class="ogpCard_image" data-ogp-card-image="" height="120" loading="lazy" src="https://stat.profile.ameba.jp/profile_images/20180313/21/0e/fu/p/o01400140p_1520943816276_wlpdj.png" style="position:absolute;top:50%;left:50%;object-fit:cover;min-height:100%;min-width:100%;transform:translate(-50%,-50%)" width="120"></span></a></article></div><p>&nbsp;</p><p>から続きまして</p><div class="ogpCard_root"><article class="ogpCard_wrap" contenteditable="false" style="display:inline-block;max-width:100%"><a class="ogpCard_link" data-ogp-card-log="" href="https://paiza.jp/works/mondai/a_rank_level_up_problems/a_rank_snake_map_step2" rel="noopener noreferrer" style="display:flex;justify-content:space-between;overflow:hidden;box-sizing:border-box;width:620px;max-width:100%;height:120px;border:1px solid #e2e2e2;border-radius:4px;background-color:#fff;text-decoration:none" target="_blank"><span class="ogpCard_content" style="display:flex;flex-direction:column;overflow:hidden;width:100%;padding:16px"><span class="ogpCard_title" style="-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;max-height:48px;line-height:1.4;font-size:16px;color:#333;text-align:left;font-weight:bold;overflow:hidden">プログラミング練習問題「盤面の情報変更」</span><span class="ogpCard_description" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6;margin-top:4px;color:#757575;text-align:left;font-size:12px">問題を解いてスキルアップ！みんなも一緒に解いてみよう！</span><span class="ogpCard_url" style="display:flex;align-items:center;margin-top:auto"><span class="ogpCard_iconWrap" style="position:relative;width:20px;height:20px;flex-shrink:0"><img alt="リンク" class="ogpCard_icon" height="20" loading="lazy" src="https://c.stat100.ameba.jp/ameblo/symbols/v3.20.0/svg/gray/editor_link.svg" style="position:absolute;top:0;bottom:0;right:0;left:0;height:100%;max-height:100%" width="20"></span><span class="ogpCard_urlText" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#757575;font-size:12px;text-align:left">paiza.jp</span></span></span><span class="ogpCard_imageWrap" style="position:relative;width:120px;height:120px;flex-shrink:0"><img alt="" class="ogpCard_image" data-ogp-card-image="" height="120" loading="lazy" src="https://paiza.jp/assets/work/mondai/ogp-3b2d58d488180b42131a62f6aae0d865d50498311eee4e4173d9354d94b4a835.png" style="position:absolute;top:50%;left:50%;object-fit:cover;min-height:100%;min-width:100%;transform:translate(-50%,-50%)" width="120"></span></a></article></div><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>大体ひな形的なものは前回でできたのでそれの応用です。</p><p>いざ！！</p><p>&nbsp;</p><p>↓</p><p>&nbsp;</p><p>&nbsp;</p><p>#include &lt;iostream&gt;<br>#include &lt;vector&gt;<br>#include &lt;string&gt;<br>using namespace std;<br>int main(void){<br>&nbsp;<br>&nbsp; &nbsp; //変数定義<br>&nbsp; &nbsp; int H,W,N,x,y;<br>&nbsp; &nbsp; std::cin &gt;&gt; H &gt;&gt; W &gt;&gt; N;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp;//文字盤作成　std::vector&lt;型&gt;　変数名(配列サイズ,初期値）<br>&nbsp; &nbsp; std::vector&lt;string&gt; dial(H);<br>&nbsp; &nbsp; for(int i = 0; i &lt; H ; i++ )<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; //vctor配列i行目に文字列を設定<br>&nbsp; &nbsp; &nbsp; &nbsp; std::cin &gt;&gt; dial[i];<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; //座標にアクセスしてy行目のx文字目を＃に置き換え<br>&nbsp; &nbsp; for(int j = 0; j &lt; N; j++)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; std::cin &gt;&gt; y &gt;&gt; x;<br>&nbsp; &nbsp; &nbsp; &nbsp; dial[y].replace(x,1,"#");<br>&nbsp; &nbsp; &nbsp; &nbsp; //std::cout &lt;&lt; dial[y][x] &lt;&lt; std::endl;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; for(int i = 0; i &lt; H; ++i)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; std::cout &lt;&lt; dial.at(i) &lt;&lt; std::endl;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; return 0;<br>}</p><p>&nbsp;</p><p>＜今回の反省＞</p><p>今回は解説も見たのでそれも含めて</p><p>・vectorわからん泣</p><p>・”と・・・’。</p><p>&nbsp;</p><p>グーグル先生に聞きました。</p><p>そして大きな？ミス。</p><p>&nbsp;</p><p>今回は文字盤を作成して、指定された座標の文字を書き換えるのですが、</p><p>解説では</p><p>dial[y][x] = '#';</p><p>で、自分は</p><p>dial[y].replace(x, 1, "#");</p><p>&nbsp;</p><p>自分の奴でうまくいったのですが、実は解説と同じやり方を最初にやっていたのに、</p><p>&nbsp;</p><p>dial[y][x] = "#";</p><p>&nbsp;</p><p>でエラーになり、よくわからずに諦めていました・・・・・・・・・・・。</p><p>&nbsp;</p><p>&nbsp;</p><p>'だったのか・・・。</p><p>&nbsp;</p><p>一応文字列操作を参考にできたのでよしとします(笑)</p><p>&nbsp;</p><p>vectorとか勉強しなきゃなあ。</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/lovemyfare/entry-12687164563.html</link>
<pubDate>Sun, 18 Jul 2021 17:54:01 +0900</pubDate>
</item>
<item>
<title>【解説】paiza STEP: 1 盤面の情報取得 C++ 作成　【確認】</title>
<description>
<![CDATA[ <p>&nbsp;</p><p>前回のダメダメコードのポイントをチケットを使ってみてみました。</p><div class="ogpCard_root"><article class="ogpCard_wrap" contenteditable="false" style="display:inline-block;max-width:100%"><a class="ogpCard_link" data-ogp-card-log="" href="https://ameblo.jp/lovemyfare/entry-12687141405.html" rel="noopener noreferrer" style="display:flex;justify-content:space-between;overflow:hidden;box-sizing:border-box;width:620px;max-width:100%;height:120px;border:1px solid #e2e2e2;border-radius:4px;background-color:#fff;text-decoration:none" target="_blank"><span class="ogpCard_content" style="display:flex;flex-direction:column;overflow:hidden;width:100%;padding:16px"><span class="ogpCard_title" style="-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;max-height:48px;line-height:1.4;font-size:16px;color:#333;text-align:left;font-weight:bold;overflow:hidden">『paiza STEP: 1 盤面の情報取得 C++ 作成』</span><span class="ogpCard_description" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6;margin-top:4px;color:#757575;text-align:left;font-size:12px">ほんとにかなり久しぶりにpaiza(笑)&nbsp;三日坊主すぎだけど今度からちゃんとやります。。。&nbsp;&nbsp;というわけで今日はこの問題&nbsp;”Aランクレベルアップメニュー”から…</span><span class="ogpCard_url" style="display:flex;align-items:center;margin-top:auto"><span class="ogpCard_iconWrap" style="position:relative;width:20px;height:20px;flex-shrink:0"><img alt="リンク" class="ogpCard_icon" height="20" loading="lazy" src="https://c.stat100.ameba.jp/ameblo/symbols/v3.20.0/svg/gray/editor_link.svg" style="position:absolute;top:0;bottom:0;right:0;left:0;height:100%;max-height:100%" width="20"></span><span class="ogpCard_urlText" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#757575;font-size:12px;text-align:left">ameblo.jp</span></span></span><span class="ogpCard_imageWrap" style="position:relative;width:120px;height:120px;flex-shrink:0"><img alt="" class="ogpCard_image" data-ogp-card-image="" height="120" loading="lazy" src="https://stat.profile.ameba.jp/profile_images/20180313/21/0e/fu/p/o01400140p_1520943816276_wlpdj.png" style="position:absolute;top:50%;left:50%;object-fit:cover;min-height:100%;min-width:100%;transform:translate(-50%,-50%)" width="120"></span></a></article></div><p>&nbsp;</p><p>＜反省＞</p><p>・標準入力の理解度</p><p>・vectorの使い方</p><p>・要素は全部使わなくてもできる</p><p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p><p>&nbsp;</p><p>とりあえず、</p><p>C++ってこんな風に標準入力とれたの？！（←C++つかってるのに知らなかった）です。</p><p>&nbsp;</p><p>全部載せられないけど、要は</p><p><br>&nbsp; &nbsp; int H, W, N;//行、列、座標数<br>&nbsp; &nbsp; cin &gt;&gt; H &gt;&gt; W &gt;&gt; N;</p><p>&nbsp;</p><p>で、最初の入力とれる。</p><p>&nbsp;</p><p>自分↓</p><p>&nbsp;</p><p>vector&lt;int&gt; vec(first_Input_num);//入力値<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; vector&lt;int&gt; vec(first_Input_num);//入力値<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; //最初に行、列、入力座標を取得<br>&nbsp; &nbsp; for (int i = 0; i &lt; first_Input_num; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; cin &gt;&gt; vec.at(i);//可変長配列に格納<br>&nbsp; &nbsp; }</p><p>&nbsp;</p><p>ほんとに長くてやばい。cinとかcoutとか全然(´;ω;｀)</p><p>&nbsp;</p><p>そして文字盤も、なんかchar配列を使ってしまったけど、そっちにvectorを使えばよかった。</p><p>&nbsp;</p><p lang="ja">//文字盤作成</p><p lang="ja">&nbsp;&nbsp;&nbsp; vector&lt;string&gt; S(H);</p><p>&nbsp;</p><p>string形でH行分作成しちゃえばいいんだ・・・。(´;ω;｀)</p><p>&nbsp;</p><p>そしてW要素は使用しなくてもよかった。</p><p>&nbsp;</p><p>&nbsp;</p><p>うーん。ほんとにまだまだ。とりあえず答えは出せてるけど、やり方が未熟過ぎて嫌になります。</p><p>でも腐らずに頑張る！！！</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/lovemyfare/entry-12687147253.html</link>
<pubDate>Sun, 18 Jul 2021 16:10:44 +0900</pubDate>
</item>
<item>
<title>paiza STEP: 1 盤面の情報取得 C++ 作成</title>
<description>
<![CDATA[ <p>ほんとにかなり久しぶりにpaiza(笑)</p><p>&nbsp;</p><p>三日坊主すぎだけど今度からちゃんとやります。。。</p><p>&nbsp;</p><p>&nbsp;</p><p>というわけで今日はこの問題</p><p>&nbsp;</p><p>”Aランクレベルアップメニュー”から「盤面の情報取得 C++編」採点結果</p><p>※問題こちらから読んでください（STEP: 1 盤面の情報取得です）</p><p>&nbsp;</p><div class="ogpCard_root"><article class="ogpCard_wrap" contenteditable="false" style="display:inline-block;max-width:100%"><a class="ogpCard_link" data-ogp-card-log="" href="https://paiza.jp/works/mondai/a_rank_level_up_problems/a_rank_snake_map_step1/edit?language_uid=c-plus-plus" rel="noopener noreferrer" style="display:flex;justify-content:space-between;overflow:hidden;box-sizing:border-box;width:620px;max-width:100%;height:120px;border:1px solid #e2e2e2;border-radius:4px;background-color:#fff;text-decoration:none" target="_blank"><span class="ogpCard_content" style="display:flex;flex-direction:column;overflow:hidden;width:100%;padding:16px"><span class="ogpCard_title" style="-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;max-height:48px;line-height:1.4;font-size:16px;color:#333;text-align:left;font-weight:bold;overflow:hidden">ログイン</span><span class="ogpCard_description" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6;margin-top:4px;color:#757575;text-align:left;font-size:12px">ログイン画面です。｜ITエンジニア・プログラマ向け総合求職・学習サイト【paiza】</span><span class="ogpCard_url" style="display:flex;align-items:center;margin-top:auto"><span class="ogpCard_iconWrap" style="position:relative;width:20px;height:20px;flex-shrink:0"><img alt="リンク" class="ogpCard_icon" height="20" loading="lazy" src="https://c.stat100.ameba.jp/ameblo/symbols/v3.20.0/svg/gray/editor_link.svg" style="position:absolute;top:0;bottom:0;right:0;left:0;height:100%;max-height:100%" width="20"></span><span class="ogpCard_urlText" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#757575;font-size:12px;text-align:left">paiza.jp</span></span></span><span class="ogpCard_imageWrap" style="position:relative;width:120px;height:120px;flex-shrink:0"><img alt="" class="ogpCard_image" data-ogp-card-image="" height="120" loading="lazy" src="https://paiza.jp/images/ogp/og_paiza_common.png" style="position:absolute;top:50%;left:50%;object-fit:cover;min-height:100%;min-width:100%;transform:translate(-50%,-50%)" width="120"></span></a></article></div><p>&nbsp;</p><p>↓</p><p><b>採点結果</b></p><p>実行言語：<br>C++</p><p>スコア</p><p>100&nbsp;点</p><p>ランク</p><p>C&nbsp;相当</p><p>&nbsp;</p><p>＜提出コード＞</p><p>#include &lt;iostream&gt;<br>#include &lt;vector&gt; //可変長配列<br>using namespace std;<br><br>#define first_Input_num (3)//最初の入力値取得<br><br>int main(void){<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; int Coordinate[2];//結果変数<br>&nbsp; &nbsp; vector&lt;int&gt; vec(first_Input_num);//入力値<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; //最初に行、列、入力座標を取得<br>&nbsp; &nbsp; for (int i = 0; i &lt; first_Input_num; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; cin &gt;&gt; vec.at(i);//可変長配列に格納<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; //文字盤作成<br>&nbsp; &nbsp; char dial [vec.at(0)][vec.at(1)];<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; //行を取得<br>&nbsp; &nbsp; for (int j = 0; j &lt; vec.at(0); j++) {<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; //行の文字をとって列にする<br>&nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; vec.at(1); i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cin &gt;&gt; dial[j][i];//可変長配列に格納<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; //座標取得<br>&nbsp; &nbsp; for (int k = 0; k &lt; vec.at(2); k++) {<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; //y,xを取得<br>&nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; 2; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cin &gt;&gt; Coordinate[i];//可変長配列に格納<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;dial[Coordinate[0]][Coordinate[1]]&lt;&lt;endl;<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; return 0;<br>}<br>&nbsp;</p><p>よ、よかった・・・。</p><p>&nbsp;</p><p>＜今回の反省＞</p><p>・クラスとかなんも使ってない（C++なのに全然慣れてない）</p><p>・とりあえず答えを出すことで精一杯</p><p>&nbsp;</p><p>&nbsp;</p><p>途中グーグル先生に頼って何とか作成(笑)</p><p>時間的にはコードは20分くらいでできました。</p><p>半人前ですが、これを何回も繰り返しながらよいコードを書けるようになりたいです。</p><p>&nbsp;</p><p>しかしながら、しかしながら・・・・・・・・・。</p><p>&nbsp;</p><p>問題文、正直めっちゃ解り辛い説！！！！</p><p>&nbsp;</p><p>私が読解力ないと言われたら終わりですが、</p><p>&nbsp;</p><p>・ 1 行目には盤面の行数を表す整数 H , 盤面の列数を表す整数 W , 与えられる座標の数を表す整数 N が与えられます。<br>⇒最初行（横）、列（縦）、入力座標数が与えられる<br>・ 続く H 行のうち i 行目 (0 ≦ i &lt; H) には、盤面の i 行目の文字をまとめた文字列 S_i が与えられ、S_i の j 文字目は、盤面の i 行目の j 列目に書かれている文字を表します。<br>⇒要するに、行ごとの文字列がまとめて与えられるので、その文字列はそのまま行ごとに文字盤にはめてったらええ<br>・ 続く N 行 には、文字を答えるための y_i , x_i 座標が与えられます。(1 ≦ i ≦ N)<br>⇒答える座標が与えられる</p><p>&nbsp;</p><p>「盤面の i 行目の j 列目に書かれている文字」て言ってるけど、iとjの説明など特になく？？？のまま、問題文だけで1時間以上かかっている自分(笑)</p><p>&nbsp;</p><p>そしてもう入力例（下に書いてあった(笑)）のみで突破(笑)</p><p>なにいってるかわからなかったんですほんとに泣</p><p>&nbsp;</p><p>そんな雑魚しい自分ですが、何とか解けました😅</p><p>全然コードはダメダメだと思いますが、まずは答えを出す！！最初はこれで行きます(笑)</p><p>&nbsp;</p><p>（ちなみにこれ一旦VS2019でビルドしようとしたらエラー・・・。機械はほんとに苦手・・・。）</p>
]]>
</description>
<link>https://ameblo.jp/lovemyfare/entry-12687141405.html</link>
<pubDate>Sun, 18 Jul 2021 15:35:08 +0900</pubDate>
</item>
<item>
<title>VS で絵を表示したいときのメモ</title>
<description>
<![CDATA[ <p>覚書～～～。</p><p>&nbsp;</p><p>※Visual Studio を使用されている場合は、Visual Studio のプロジェクトファイル( 拡張子が vcxproj )があるフォルダに置かれている必要があるので注意（全然違うところのは読み込んでくれなかった。）</p><p>&nbsp;</p><table align="center" cellpadding="0" cellspacing="0" width="900"><tbody><tr><td><font color="#005500" size="3"><b>グラフィックデータ制御関数</b></font><br>&nbsp;</td></tr><tr><td><table align="center" cellpadding="0" cellspacing="0" width="900"><tbody><tr><td valign="top" width="100"><b><a name="R3N1">宣言</a></b></td><td><font color="#000088"><b>int LoadGraphScreen( int x , int y , char *GraphName , int TransFlag ) ;</b></font><br>&nbsp;</td></tr><tr><td valign="top" width="100"><b>概略</b></td><td>画像ファイルを読みこんで画面に表示する<br>&nbsp;</td></tr><tr><td valign="top" width="100"><b>引数</b></td><td>x , y　　　:　ロードした画像を描画する矩形の左上頂点の座標<br>GraphName　:　ロードする画像パスの文字列があるポインタ<br>TransFlag　:　画像の透明度を有効にするかどうか( TRUE：有効にする　FALSE：無効にする )</td></tr><tr><td valign="top" width="100"><b>戻り値</b></td><td>　０：成功</td></tr><tr><td width="100">　</td><td>－１：エラー発生<br>&nbsp;</td></tr><tr><td valign="top" width="100"><b>解説</b></td><td>　画像ファイルをGraphNameの示すパスを元にディスクから読みこんで( x , y )を画像の左上の頂点とした領域に描画します。<br>　TransFlagをTRUEにすると画像の透明度が有効になります。<br>( 画像の透明度の詳細については&nbsp;<a href="https://dxlib.xsrv.jp/function/dxfunc_graph1.html#R15N7"><b>SetTransColor</b></a>&nbsp;の解説を参照してください )<br><br><font color="#660000"><b>尚、読み込むことの出来る画像形式は BMP,JPEG,PNG,DDS,ARGB,TGA の６種類です。</b></font><br><br>&nbsp;</td></tr></tbody></table></td></tr></tbody></table>
]]>
</description>
<link>https://ameblo.jp/lovemyfare/entry-12512019107.html</link>
<pubDate>Mon, 26 Aug 2019 10:31:01 +0900</pubDate>
</item>
<item>
<title>警告C28251'WinMain' に対する整合性のない注釈</title>
<description>
<![CDATA[ <p>エラー解決覚書</p><p>&nbsp;</p><p>int&nbsp;WINAPI&nbsp;WinMain(&nbsp;HINSTANCE,&nbsp;HINSTANCE,&nbsp;LPSTR,&nbsp;int)<br><br>警告メッセージ(Visual Studio 2015 の場合)<br>警告 C28251 'WinMain' に対する整合性のない注釈: このインスタンスには 注釈なし が含まれます。c:\program files (x86)\windows kits\8.1\include\um\winbase.h(905) を参照してください。<br><br>以下のように書き換えると、警告されない。らしい。<br>int&nbsp;WINAPI&nbsp;WinMain(_In_&nbsp;HINSTANCE,&nbsp;_In_opt_&nbsp;HINSTANCE,&nbsp;_In_LPSTR,&nbsp;_In_&nbsp;int)</p>
]]>
</description>
<link>https://ameblo.jp/lovemyfare/entry-12511083750.html</link>
<pubDate>Sat, 24 Aug 2019 12:42:07 +0900</pubDate>
</item>
<item>
<title>にゃんこ姉妹選挙に投票！</title>
<description>
<![CDATA[ <p style="text-align: center;">&nbsp;</p><p style="text-align: center;">「明治にゃんこ」に投票！</p><p style="text-align: center;">&nbsp;</p><p style="text-align: center;"><a href="https://stat100.ameba.jp/blog/img/stamp/cpn/reiwa_start_part1/timeslip.png"><img alt="" contenteditable="inherit" height="420" src="https://stat100.ameba.jp/blog/img/stamp/cpn/reiwa_start_part1/timeslip.png" width="420"></a></p><p style="text-align: center;">&nbsp;</p><p style="text-align: center;"><a href="https://blogtag.ameba.jp/detail/%E3%81%AB%E3%82%83%E3%82%93%E3%81%93%E5%A7%89%E5%A6%B9%E9%81%B8%E6%8C%99" target="_blank">みんなの回答を見る</a><img alt="右矢印" draggable="false" height="24" src="https://stat100.ameba.jp/blog/ucs/img/char/char3/122.png" width="24"></p><p style="text-align: center;"><a href="https://content.ameba.jp/campaigns/reiwa_start_part2/" target="_blank">キャンペーン詳細</a><img alt="右矢印" draggable="false" height="24" src="https://stat100.ameba.jp/blog/ucs/img/char/char3/122.png" width="24"></p>
]]>
</description>
<link>https://ameblo.jp/lovemyfare/entry-12483077157.html</link>
<pubDate>Wed, 19 Jun 2019 10:28:48 +0900</pubDate>
</item>
<item>
<title>python くり返しでプルダウン表示</title>
<description>
<![CDATA[ <p>ちょっといろいろやらかしたけどなんとかできた・・・・。</p><p>&nbsp;</p><p>&nbsp;</p><p>＜1~100歳までの年齢をプルダウンで表示する＞</p><p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p><p># coding: utf-8<br># 年齢入力のプルダウン作成<br>print("&lt;select name=\'age\'&gt;")<br>for age in range(100):<br>&nbsp; &nbsp; print("&lt;option&gt;" + str(age+1) + "歳&lt;/option&gt;")<br>print("&lt;/select&gt;")</p><p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p><p>&nbsp;</p><p>～個人的だめだめポイント～</p><p>・print("&lt;select name=\'age\'&gt;")の前で繰り返ししない</p><p>　⇒プルダウン自体が100個作られてしまったｗｗｗｗ</p><p>&nbsp;</p><p>注意</p><p>・rangeはデフォルトで０からなので、1歳から表示したいときは+1であらわす</p><p>&nbsp;</p><p>&nbsp;</p><p>&lt;HTMLの箇条書き表示&gt;</p><p>================================================</p><p>&nbsp;coding: utf-8<br># HTMLによる箇条書き<br>print("&lt;ul&gt;")<br>for age in range(100):<br>&nbsp; &nbsp; print("&lt;li&gt;" + str(age + 1) + &nbsp;"&lt;/li&gt;")<br>print("&lt;/ul&gt;")</p><p>================================================</p><p>&nbsp;</p><p>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/lovemyfare/entry-12465171585.html</link>
<pubDate>Fri, 31 May 2019 09:10:00 +0900</pubDate>
</item>
<item>
<title>python くり返し</title>
<description>
<![CDATA[ <p>＜while 基本＞</p><p>※インデント間違っていると動かないみたいなので超注意！！</p><p>*********************************************</p><pre><code># coding: utf-8# whileによるループ処理カウンタ変数を初期化while 条件式:      繰り返し処理      カウンタ変数を更新</code></pre><p>*********************************************</p><p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p><p># coding: utf-8<br># whileによるループ処理<br># ①カウンタ変数を初期化<br>count = 1<br># ②条件式を記入<br>while count &lt;= 10 :<br>&nbsp; &nbsp; # ③繰り返し処理<br>&nbsp; &nbsp; print(count)<br>&nbsp; &nbsp; # ④カウンタ変数を更新<br>&nbsp; &nbsp; count = count + 1</p><p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p><p>&nbsp;</p><p>&lt;数値を0から5まで表示する&gt;</p><p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p><p># coding: utf-8<br># whileによるループ処理<br>count = 0<br>while count &lt; 6:<br>&nbsp; &nbsp; print(str(count))<br>&nbsp; &nbsp; count = count + 1</p><p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p>
]]>
</description>
<link>https://ameblo.jp/lovemyfare/entry-12465100613.html</link>
<pubDate>Thu, 30 May 2019 23:05:23 +0900</pubDate>
</item>
<item>
<title>python のfor inによるループ処理</title>
<description>
<![CDATA[ <p>pythonってカンマここで使うのか。</p><p>いらないのか使うのかどっちかにモゴモゴ</p><p>＜基本＞</p><p>======================================</p><pre><code> coding: utf-8# for inによるループ処理for カウンタ変数 in 繰り返す範囲:    繰り返し処理</code></pre><pre>======================================</pre><p>■例</p><p>&lt;for in命令を使って、0から15まで数値を一行ずつ表示する出力するプログラム&gt;</p><p>======================================</p><p># coding: utf-8<br># for inによるループ処理<br>for count in range(0,16):<br>&nbsp; &nbsp; print(count)</p><p>======================================</p><p>&nbsp;</p><p>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/lovemyfare/entry-12464773266.html</link>
<pubDate>Wed, 29 May 2019 16:58:59 +0900</pubDate>
</item>
<item>
<title>python のランダムって面白い</title>
<description>
<![CDATA[ <p>仕事では全然開発できなくてもはやテスターと化している今日この頃。</p><p>Cでなく<b>Python</b>に最近興味あるのでめも。</p><p>（今までjavaとかCにしか触れてこなかったけど、型名指定した変数宣言いらないとか正直驚いて逆に困惑しました。雑魚です。）</p><p>&nbsp;</p><p>■import random　randint(1,6)</p><p>randomっていう標準ライブラリがあって？その中のrandint(X,Y)</p><p>関数を使うと、Ⅹ~Yまでのランダムな数値を出してくれる</p><p>&nbsp;</p><p>地味に面白い。。(これだけで遊べる気がする)</p><p>&nbsp;</p><p>&lt;サイコロの目を表示する&gt;</p><p>=====================================</p><p># coding: utf-8<br>import random<br>saikoro = random.randint(1,6)<br>print("サイコロの目は" + str(saikoro) + "です。")</p><p>=====================================</p><p>&nbsp;</p><p>&lt;与えたダメージを表示する&gt;</p><p>=====================================</p><p># coding: utf-8<br>import random<br>damage = random.randint(50,99)<br>print("モンスターに、" + str(damage) + "のダメージを与えた。")</p><p>=====================================</p><p>&nbsp;</p><p>モンスターがXX匹あらわれた！とか表示していったらワクワクするよね。</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/lovemyfare/entry-12464759480.html</link>
<pubDate>Wed, 29 May 2019 15:47:38 +0900</pubDate>
</item>
</channel>
</rss>
