<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gin0606</author_name>
  <author_url>https://blog.hatena.ne.jp/gin0606/</author_url>
  <blog_title>銀の人のメモ帳</blog_title>
  <blog_url>https://gin0606.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>なんて言えばいいのか分からないんだけど、0001とか002とかそういう数字作る時にif文で桁数見たりするのもアレなので書いた。C++勉強してないからもっといい方法ある気はする。 ぐぐらびりてぃが低いので良いタイトル募集します。 char const *digitString(int num, int digit) { char c[32]; sprintf(c, &quot;%d&quot;, num); std::string s(c); while (s.length() &lt; digit) { s = &quot;0&quot; + s; } return s.c_str(); } 神 @gin0606 つ std::cout …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgin0606.hatenablog.com%2Fentry%2F2013%2F12%2F24%2F134138&quot; title=&quot;n桁の0埋めの数字を作る - 銀の人のメモ帳&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>2013-12-24 13:41:38</published>
  <title>n桁の0埋めの数字を作る</title>
  <type>rich</type>
  <url>https://gin0606.hatenablog.com/entry/2013/12/24/134138</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
