how to convert a part of array from int to float and set the value to another two arrays
<p>EDITED:I was trying and searching, but didn't find how to convert only the part when (j==3) to float, because i need the evaluation(grade or idk the exactly word) to be from 2 to 6 - it can be 3,5... so i need float. OK, check my code: </p>

<pre><code>#include &lt;iostream&gt;
#include &lt;iomanip&gt;

using namespace std;

int main()
{
  unsigned int m[25][4], a[25][4], b[25][4];
  int i,j,n,k=0,p=0,g=0,t=0;
  do
  {
    cout&lt;&lt;"Enter number of students: ";cin&gt;&gt;n;
  }
  while(!(n&gt;0 &amp;&amp; n&lt;=25));

  for(i=0;i&lt;n;i++)
  {
    cout&lt;&lt;"Student N:"&lt;&lt;i+1&lt;&lt;"\n";
    for(j=0;j&lt;4;j++)
      if(j==0)
      {
        do
        {
          cout&lt;&lt;"Fak nomer: ";cin&gt;&gt;m[i][j];
        }
        while(!(m[i][j]&gt;=10000000 &amp;&amp; m[i][j]&lt;100000000));
      }
      else if(j==1)
      {
        do
        {
          cout&lt;&lt;"Enter Speciallity - 52 for E, 61 for AIUT"&lt;&lt;endl;
          cout&lt;&lt;"Code: ";cin&gt;&gt;m[i][j];
        }
        while(!(m[i][j]==52 || m[i][j]==61));   
      }
      else if(j==2)
      {
        do
        {
          cout&lt;&lt;"Group: ";cin&gt;&gt;m[i][j];
        }
        while(!(m[i][j]==1 || m[i][j]==2 || m[i][j]==3 || m[i][j]==4));
      }
      else
      {
        //float f=m[i][j];(i tried to replace all m[i][j] with f but..)
        do
        {
          cout&lt;&lt;"Avg. evaluation: ";cin&gt;&gt;m[i][j];
        }
        while(!(m[i][j]&gt;=2 &amp;&amp; m[i][j]&lt;=6));
        //m[i][j]=f; 
      }
    }
    for(i=0;i&lt;n;i++)
    {
      for(j=0;j&lt;4;j++)
        cout&lt;&lt;setprecision(8)&lt;&lt;m[i][j]&lt;&lt;"\t";
      cout&lt;&lt;endl;
    }
    cout&lt;&lt;endl; 
  }
</code></pre>

<p>Let's say we will make the whole array float, so i need to set the information based on two new arrays as it says:</p>

<pre><code>if(m[i][1]==52)
   a[k][p]=m[i][j]
else if(m[i][1]==61)
   b[g][t]=m[i][j]
</code></pre>

<p>Actually i need to show them based on the group code if 52 to show the array with only 52... and if 61 to show only array with 61, somekind of sorting them... i tried some ways but i get that: "-9.2559631e+061" and i think as i said that i need unsigned array to work that... EDITED!</p>
