title: Decimal to hex conversion
body: <p>I need to write the following program:
  I have a long non-negative integer is given(4 byte). Delete from the hexadecimal digit less than 5.
  But I do not know where to start.
  My code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  { 
      unsigned int x=10012;
      char hexString[32];
      cout&lt;&lt;hex&lt;&lt;x&lt;&lt;endl;
      itoa(x,hexString,16);
      cout&lt;&lt;hexString;
      for(int i=0;i&lt;strlen(hexString);i++)
      {
          int a = hexString[i];
          if(a &lt; 5)
          {
              for(int j=i;j&lt;strlen(hexString)-1;j++)
                  hexString[j] = hexString[j+1];
                  i--;
          }
      }
      cout&lt;&lt;hexString;
      system("pause");
      return 0;
  }
  </code></pre>