新しく発言する  EXIT  インデックスへ
流れ図(フローチャート)を描く

  流れ図(フローチャート)を描く 山中和義 2008/01/09 16:18:14  (修正1回)
  つづき 山中和義 2008/01/09 16:20:23  (修正1回)
   └流れ図でアルゴリズムを検証する。2008.1.1... 山中和義 2008/01/10 12:53:57  (修正4回)
    ├つづき 山中和義 2008/01/10 12:55:58  (修正4回)
    ├つづき2 山中和義 2008/01/10 13:01:14  (修正4回)
    ├つづき3 山中和義 2008/01/11 21:06:32  (修正2回)
    └つづき4 山中和義 2008/01/13 20:10:24  (修正1回)

Re: 流れ図でアルゴリズムを検証する。2008.1.1...  返事を書く  ノートメニュー
山中和義 <drdlxujciw> 2008/01/13 20:10:24 ** この記事は1回修正されてます
つづき4


!列挙する ※h*w個

10 DATA 1,"3","開始","点数の最大値を求める" !※記号番号,矢印の向き,内容,注釈
DATA 3,"3","-1→MAX",""
DATA 8,"3","a",""
DATA 5,"3<","0≧","a:0","" !※コードは最初の等号・不等号を使う
DATA 9,"3","MAX","最大値"
DATA 1,"","終了",""
DATA 0,"","",""

DATA 0,"","",""
DATA 0,"","",""
DATA 13,"2","┬","" !NOP、結線
DATA 5,"0>","1≦","a:MAX",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""

DATA 0,"","",""
DATA 0,"","",""
DATA 13,"2","┐",""
DATA 3,"1","a→MAX","更新"
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""

DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""

DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""


END




●サンプル(差し替え)


10 DATA 1,"3","開始","1+2+3+…+n が300を超えるnを計算する"
DATA 3,"3","0→S","和"
DATA 16,"3","1","n=1,300,1","" !※指定回数の繰り返し d2$はループ番号
DATA 3,"3","S+n→S","累積していく"
DATA 5,"0>","3<=","S:300","" !※前が真、後が偽
DATA 17,"3","1","","" !※前判定 d2$はループ番号、s$=""
DATA 2,"","1",""

DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 2,"","1","ループを抜ける" !BREAK
DATA 0,"","",""
DATA 0,"","",""

DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""

DATA 0,"","",""
DATA 2,"3","1",""
DATA 9,"3","n","計算結果"
DATA 1,"","終了",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""

DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""
DATA 0,"","",""

     └サンプル(右から左へ受け流す〜♪) 山中和義 2008/01/13 20:18:23  (修正1回)
      └高校数学「数値計算とコンピュータ」 山中和義 2008/01/22 20:37:31  (修正1回)

 インデックスへ  EXIT
新規発言を反映させるにはブラウザの更新ボタンを押してください。