Upgrade to Pro — share decks privately, control downloads, hide ads and more …

はじめてのRuby 第9章 / Ruby Practice 09

muttan
November 15, 2016

はじめてのRuby 第9章 / Ruby Practice 09

muttan

November 15, 2016
Tweet

More Decks by muttan

Other Decks in Programming

Transcript

  1. w ࿦ཧԋࢉࢠ͸࣍ͷΑ͏ͳॲཧʹԠ༻Ͱ͖Δ
 ʢ഑ྻͷઌ಄ཁૉΛऔΓग़͢ॲཧʣ
 
 
 
 
 
 
 ࿦ཧԋࢉࢠͷԠ༻

    JUFNOJM JGBSZ JUFNBSZpSTU FOE OBNFBSZBSZpSTU BSZ͕OJMPSGBMTFͰͳ͍࣌  BSZpSTUΛऔΓग़͢
  2. w ஋ͷൣғΛද͢ΦϒδΣΫτʢGPSࣜ΍FBDIϝιο υͰ΋Ͱ͖ͯͨʣ
 
 w ʮʯΛൣғԋࢉࢠͱ͍͏ w ൣғԋࢉࢠ͸ೋछྨ͋Γ YZ͸<Y Z>Λද͠

    
 Yʜ͸<Y Z Λද͍ͯ͠Δ ൣғԋࢉࢠ 3BOHFOFX    লུܗ
  3. w ԋࢉࢠʹ͸༏ઌॱҐ͕ઃ͚ΒΕ͓ͯΓ ࣜதʹෳ ਺ͷԋࢉࢠ͕ଘࡏ͢Δ৔߹͸༏ઌ౓ͷߴ͍΋ͷ ͔Βॱʹݺͼग़͞ΕΔΧοίΛ෇͚Δͱ ͦͷ ৔ॴ͔ΒܭࢉΛߦ͏ ԋࢉࢠͷ༏ઌॱҐ ࣜ ҙຯ

    ݁Ռ         bB` bC`  bD` B`  bC`   bD` bBCCD             536& 1ਤԋࢉࢠͷ༏ઌॱҐࢀর
  4. ·ͱΊ w   ͷΑ͏ͳԋࢉࢠΛ୅ೖԋࢉࢠͱ͍͏ w ࿦ཧԋࢉࢠΛ׆༻͢Δ͜ͱͰ ৚݅ࣜ΍ॳظԽΛ ޮ཰తʹॻ͘͜ͱ͕Ͱ͖Δ w

    3BOHFΦϒδΣΫτ͸ൣғΛද͓ͯ͠Γ ൣғԋ ࢉࢠʮʯʮʜʯΛ༻͍Δ͜ͱͰੜ੒Ͱ͖Δ w Ұ෦ͷԋࢉࢠΛআ͍ͯ ԋࢉࢠΛ࠶ఆٛ͢Δ͜ͱ ͕Ͱ͖Δ