<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sygh</author_name>
  <author_url>https://blog.hatena.ne.jp/sygh/</author_url>
  <blog_title>syghの新フラグメント置き場</blog_title>
  <blog_url>https://sygh.hatenadiary.jp/</blog_url>
  <categories>
    <anon>プログラミングTips</anon>
    <anon>C#</anon>
    <anon>.NET Framework</anon>
    <anon>C++</anon>
  </categories>
  <description>（これは2013-06-27に書いた故OCNブログの記事を移植したものです）.NETのString.Format()やConsole.Write()/WriteLine()の書式を駆使すれば、ほぼCのprintf系をカバーできるんですが、MSDNの書式指定構文の説明にある、 % [flags] [width] [.precision] [{h | l | ll | I | I32 | I64 }]typeのうちの[flags]はちょっと工夫が要りそうなのでメモ。以下、C/C++とC#の対比。 printf(&quot;%6.2f&quot;, 12.345); // &quot; 12.35&quot; は Console.Writ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsygh.hatenadiary.jp%2Fentry%2F2013%2F10%2F27%2F215749&quot; title=&quot;printfとString.Format - syghの新フラグメント置き場&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>http://ecx.images-amazon.com/images/I/51MgH8Jmr3L.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-10-27 21:57:49</published>
  <title>printfとString.Format</title>
  <type>rich</type>
  <url>https://sygh.hatenadiary.jp/entry/2013/10/27/215749</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
