<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Nabetani</author_name>
  <author_url>https://blog.hatena.ne.jp/Nabetani/</author_url>
  <blog_title>鍋あり谷あり</blog_title>
  <blog_url>https://nabetani.hatenadiary.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>switch 文の話の続き。 今日、C++ の本を見てみたら、どうも switch のラベルは 「switch( 式 )」 の直後に書いていいらしいということがわかった。 具体的には： switch( peach() ) case 0: if ( banana() ) case 1: { case 2: pear(); } // case 3: // これはエラー else case 4: { case 5: melon(); case 6: mandarin(); }の、case 0:。 case1: と case 4: は意外な位置にあるが、合法である。 case1: と case 2: …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnabetani.hatenadiary.com%2Fentry%2F20050915%2Fp1&quot; title=&quot;switch の ラベル - 鍋あり谷あり&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>2005-09-15 00:00:00</published>
  <title>switch の ラベル</title>
  <type>rich</type>
  <url>https://nabetani.hatenadiary.com/entry/20050915/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
