array1 and array2 is my ascended ordered arrays
ı want to put this arrays into the array3 and then ı want to write ouput.txt
you can understand better my codes.
for( int i=0; i<21 ;++i)
{
if (array1[d].ave> array2[e].ave)
array3[i].ave=array2[e].ave;
e = e+1;
if(array2[e].ave>array1[1].ave)
{
array3[i].ave = array1[d].ave;
d=d+1;
}
}
for ( int m=0;m<20;++m)
{
fprintf(b,"%s%f\n",array3[m].name,array3[m].ave );
}