函数输出!!
请问执行完这个函数,输出X[ ][ ]没有东西的??????#include <stdio.h>
#include <math.h>
#define x_amount 3
void Count(float pC[x_amount][x_amount],float pX[x_amount][2],int pe) /*循环求解*/
{
int i,j,k;
float temp_e[x_amount];
float max_temp = 0.0;
for (i = 0 ; i < x_amount ; ++i)
{
for (k = 0 ; k < x_amount ; ++k)
{
pX[i][1] += pX[k+1][0]*pC[i][k];
}
pX[i][1] += pC[i][k];
}
for (i = 0 ; i < x_amount ; ++i)
{
temp_e[i] = fabs(pX[i][1] - pX[i][0]);
}
for (i = 0 ; i < x_amount ; ++i)
{
if (temp_e[i] > max_temp)
{
max_temp = temp_e[i];
}
else
{
continue;
}
}
while (max_temp >= pe)
{
for (i = 0 ; i < x_amount ; ++i)
{
pX[i][0] = pX[i][1];
pX[i][1] = 0.0;
}
for (i = 0 ; i < x_amount ; ++i)
{
for (k = 0 ; k < x_amount ; ++k)
{
pX[i][1] += pX[k+1][0]*pC[i][k];
}
pX[i][1] += pC[i][k];
}
for (i = 0 ; i < x_amount ; ++i)
{
temp_e[i] = abs(pX[i][1] - pX[i][0]);
}
for (i = 0 ; i < x_amount ; ++i)
{
if (temp_e[i] > max_temp)
{
max_temp = temp_e[i];
}
else
{
continue;
}
}
}
}