#include<stdio.h>
#include<process.h>
#include<iostream.h>
#include<fstream.h>
#include<math.h>
float a[512][512]={0};
#define N 512
typedef long int NatureNumber;
double sum[N/2]={0};
float plus=0;
read()
{
FILE* fp;
int tmp;
fp=fopen("06111-5.dat","r");
if(fp=NULL)
exit(-1);
for (int i=0; i<512; ++i )
{
for (int j=0; j<512; ++j )
{
fscanf(fp,"%d",&tmp);
a[i][j] = (float)tmp*25.1/65535;
plus+=a[i][j];
}
}
plus=plus/512/512;
return 0;
}
int main()
{
read();
NatureNumber i, j;
char file4[] = "Plasma12.dat";
ofstream fs(file4);
for (i = 0; i <N; i++)
{
for (j =0; j <N; j++)
{
fs<<a[i][j]-plus<<" ";
}
fs<<"\n";
}
}