<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.programmingexamples.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.programmingexamples.net/w/index.php?action=history&amp;feed=atom&amp;title=CPP%2FZeroPad</id>
		<title>CPP/ZeroPad - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.programmingexamples.net/w/index.php?action=history&amp;feed=atom&amp;title=CPP%2FZeroPad"/>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=CPP/ZeroPad&amp;action=history"/>
		<updated>2026-05-30T14:18:11Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>http://www.programmingexamples.net/w/index.php?title=CPP/ZeroPad&amp;diff=17&amp;oldid=prev</id>
		<title>Daviddoria: Created page with '&lt;source lang=&quot;cpp&quot;&gt;  #include &lt;iostream&gt; #include &lt;sstream&gt; #include &lt;string&gt; #include &lt;iomanip&gt;  std::string ZeroPad(const unsigned int number, const unsigned int rep); 		 int m…'</title>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=CPP/ZeroPad&amp;diff=17&amp;oldid=prev"/>
				<updated>2010-06-23T11:21:02Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;  #include &amp;lt;iostream&amp;gt; #include &amp;lt;sstream&amp;gt; #include &amp;lt;string&amp;gt; #include &amp;lt;iomanip&amp;gt;  std::string ZeroPad(const unsigned int number, const unsigned int rep); 		 int m…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;sstream&amp;gt;&lt;br /&gt;
#include &amp;lt;string&amp;gt;&lt;br /&gt;
#include &amp;lt;iomanip&amp;gt;&lt;br /&gt;
&lt;br /&gt;
std::string ZeroPad(const unsigned int number, const unsigned int rep);&lt;br /&gt;
		&lt;br /&gt;
int main(int argc, char *argv[])&lt;br /&gt;
{&lt;br /&gt;
  unsigned int number = 5;&lt;br /&gt;
  std::string test = ZeroPad(number, 3);&lt;br /&gt;
  std::cout &amp;lt;&amp;lt; test &amp;lt;&amp;lt; std::endl;&lt;br /&gt;
  &lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
std::string ZeroPad(const unsigned int number, const unsigned int rep)&lt;br /&gt;
{&lt;br /&gt;
  std::stringstream Padded;&lt;br /&gt;
  Padded &amp;lt;&amp;lt; std::setfill('0') &amp;lt;&amp;lt; std::setw(rep) &amp;lt;&amp;lt; number;&lt;br /&gt;
		  &lt;br /&gt;
  return Padded.str();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Daviddoria</name></author>	</entry>

	</feed>