1 / 8

小林 学

湘南工科大学. 2013 年 6 月 24 日. コンパイラ2 第11回. 小林 学. 〒251-8511  神奈川県藤沢市辻堂西海岸 1-1-25. Tel. 0466-30-0232( 直通 ). Fax. 0466-34-5932. kobayasi@info.shonan-it.ac.jp. 課題1: 0624.zip をダウンロードし,以下のプログラムを作成・実行しなさい.( DxLib.cpp を提出すること). Page 2. 課題2:以下のプログラムを作成・実行しなさい ( DxLib.cpp を提出すること). Page 3.

lydia
Télécharger la présentation

小林 学

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 湘南工科大学 2013年6月24日 コンパイラ2 第11回 小林 学 〒251-8511 神奈川県藤沢市辻堂西海岸1-1-25 Tel. 0466-30-0232(直通) Fax. 0466-34-5932 kobayasi@info.shonan-it.ac.jp

  2. 課題1:0624.zipをダウンロードし,以下のプログラムを作成・実行しなさい.(DxLib.cppを提出すること)課題1:0624.zipをダウンロードし,以下のプログラムを作成・実行しなさい.(DxLib.cppを提出すること) Page 2

  3. 課題2:以下のプログラムを作成・実行しなさい課題2:以下のプログラムを作成・実行しなさい (DxLib.cppを提出すること) Page 3 次ページへ続く

  4. 前ページの続き Page 4

  5. 課題3:課題2のプログラムを実行し,解きなさい.また解いた結果を以下の方法で「画像ファイル」として提出しなさい.課題3:課題2のプログラムを実行し,解きなさい.また解いた結果を以下の方法で「画像ファイル」として提出しなさい. Page 5 (1)パズルを解いた画面が見えるようにして,キーボードの「PRTSC」ボタンを押す (2)「スタート」→「すべてのプログラム」→「アクセサリ」→「ペイント」を選択 (3)「貼り付け」ボタンをクリックし,画面を張り付ける (4)画像を「JPEG形式」で保存し,保存した画像ファイルを提出 「貼り付け」ボタン

  6. Page 6 課題4:課題2のプログラムに,以下のInitBoard関数を追加しなさい.(DxLib.cppを提出すること)

  7. Page 7 課題5:0624-2ファイルをダウンロードして開き,課題4のプログラムを張り付けなさい.次にBoard配列を以下のように変更しなさい.他の箇所も適宜修正し,下のプログラム実行例のようにしなさい.(DxLib.cppを提出すること) int Board[4][3]={ { 0, 1, 2}, { 3, 4, 5}, { 6, 7, 8}, { 9,10,11}}; int Px=0,Py=0; プログラム実行例

  8. Page 8 課題6:課題5のプログラムに対して,終了判定を付けなさい. (DxLib.cppを提出すること) ヒント:Board[][]の配列の中の値が 0,1,2, 3,4,5, 6,7,8 9,10,11 となったら終了

More Related