common.h
#ifndef MY_COMMON_H_DEF
#define MY_COMMON_H_DEF
#include <windows.h>
#include<time.h>
#define MAX_COL_WIDTH 10 // the max width of one column
#define DEBUG_MSG 1
typedef struct input_data_tag
{
unsigned int row_num;
unsigned int col_num;
unsigned int col_width;
char *data_p;
} input_data_t;
void error_output( char *msg );
input_data_t initInputData(char * fname, unsigned int col_width);
void freeInputData(input_data_t *indata_p);
char *getAddress(input_data_t *indata_p, unsigned int col, unsigned int row);
double getActivation( double * xList, unsigned int xCount, double *wList, unsigned int wCount );
double getOutput( const double activation );
int getRand(int mod);
void debug_output( char *msg );
#endif
#include "common.h"
#includ