<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>program-shoshinsya</author_name>
  <author_url>https://blog.hatena.ne.jp/program-shoshinsya/</author_url>
  <blog_title>auの日記</blog_title>
  <blog_url>https://program-shoshinsya.hatenablog.com/</blog_url>
  <categories>
    <anon>C言語</anon>
  </categories>
  <description>auです。 C言語でswitch文の使い方について調べたのでまとめたいと思います。 switch文はいつ使うか switch文は条件によって処理を分けるときに使います。 例えば、順位によって何位ですという文を表示したり、サイコロの目によって処理を変えたりできます。ようはif文と同じ分岐処理です。 switch文とif文の違いは、二分岐と多分岐での処理速度の速さが変わることです。 二分岐:20歳以上でお酒が買えるか、買えないかみたいな2通り(TrueかFalse)しかない分岐 多分岐:サイコロ(1~6)を振った際に出た目によって変わるような、3つ以上の分岐 二分岐ではif文のほうが早く、多分岐で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fprogram-shoshinsya.hatenablog.com%2Fentry%2F2018%2F05%2F04%2F234713&quot; title=&quot;C言語でswitch文 - auの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-05-04 23:47:13</published>
  <title>C言語でswitch文</title>
  <type>rich</type>
  <url>https://program-shoshinsya.hatenablog.com/entry/2018/05/04/234713</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
