title: i have some problems with C in xcode
body: <p>I am using use Microsoft Visual Studio to learn C, I wrote some code, it's work well. But  when I tried to debug with xcode, it doesn't work.</p>
  
  <p><a href="https://www.dropbox.com/s/kx5pozb88lg96va/Capture%20d%E2%80%99%C3%A9cran%202012-12-16%20%C3%A0%2001.25.15.png" rel="nofollow">this is my error in xcode</a></p>
  
  <p>Here is my code for convert a number to roman numeral:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  int main()
  {
      int dec,length,indice,irom,itab=0;
      char rom[4][5]={'\0'};
      char dconvert[10];
      char convert[2];
      char tab[7]={'I','V','X','L','C','D','M'};
      float dec2;
  
      puts("give a number");
      scanf("%d",&amp;dec);
  
      itoa(dec,dconvert,10);
      length=strlen(dconvert);
      strrev(dconvert);
  
      for (indice=0; indice &lt; length;indice ++)
      {   
          convert[0]=dconvert[indice];
          dec=atoi(convert);
          if (dec&lt;=3)
          {
              for (irom=0; irom&lt;dec;irom++)
                  {
                      rom[indice][irom]=tab[itab];
                  }
          }
          if (dec&gt;3 &amp;&amp; dec&lt;9)
          {   
              irom=0;
              dec2=dec-5;
              if (dec2&lt;0)
              {
                  rom[indice][irom]=tab[itab];
                  rom[indice][irom+1]=tab[itab+1];
              }
              else 
              {
                  rom[indice][irom]=tab[itab+1];
                  for (irom=1;irom&lt;=dec2;irom++)
                  {
                      rom[indice][irom]=tab[itab];
                  }
              }
          }
          if (dec==9)
          {   
              irom=0;
              rom[indice][irom]=tab[itab];
              rom[indice][irom+1]=tab[itab+2];
          }
  
  
          itab=itab+2;
      }
      for (indice=length; indice&gt;=0;indice--)
          {
              printf("%s",rom[indice]);
          }
  
  }
  </code></pre>