#include "stdafx.h"
#include "FM_Network.h"



int main(int argc, char* argv[])
{	
	int i,j;
	FM_Network *mynet=new FM_Network(20,1,3*16,1,"vahy.txt");
	double xp[3*16],y;
	FILE *f;
	f=fopen("oo.txt","rt");
	for(j=0;j<200;j++){
		for(i=0;i<3*16;i++){
			fscanf(f,"%lf\t",&(xp[i]));		
		}
		fscanf(f,"|\t%lf\n",&y);
		printf("%f---%f\n",y,mynet->getoutput(xp));
	}
	fclose(f);
	printf("%f\n",mynet->getoutput(xp));
	delete mynet;
	printf("ahoj\n");
	return 0;
}
