<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cpp on Arcanelab Blog</title><link>https://blog.arcanelab.com/tags/cpp/</link><description>Recent content in Cpp on Arcanelab Blog</description><generator>Hugo</generator><language>en-US</language><copyright>Zoltán Majoros</copyright><lastBuildDate>Sat, 10 Dec 2011 06:58:00 +0100</lastBuildDate><atom:link href="https://blog.arcanelab.com/tags/cpp/index.xml" rel="self" type="application/rss+xml"/><item><title>How to convert an integer to a hexadecimal string in C++ int number = 42; stringstream…</title><link>https://blog.arcanelab.com/2011/12/how-to-convert-an-integer-to-a-hexadecimal-string-in-c-int/</link><pubDate>Sat, 10 Dec 2011 06:58:00 +0100</pubDate><guid>https://blog.arcanelab.com/2011/12/how-to-convert-an-integer-to-a-hexadecimal-string-in-c-int/</guid><description>&lt;h1&gt;How to convert an integer to a hexadecimal string in C++&lt;/h1&gt;
&lt;pre&gt;int number = 42;&lt;br/&gt;stringstream ss;&lt;br/&gt;ss &amp;lt;&amp;lt; hex &amp;lt;&amp;lt; number;&lt;br/&gt;// now ss.str(), which is a &lt;em&gt;string&lt;/em&gt;, contains "2a"&lt;/pre&gt;</description></item></channel></rss>