Browse Source

Added missing headers.

Frank Zago 16 years ago
parent
commit
81109b3897
1 changed files with 4 additions and 2 deletions
  1. 4 2
      AI/GeniusAI/neuralNetwork.cpp

+ 4 - 2
AI/GeniusAI/neuralNetwork.cpp

@@ -1,3 +1,5 @@
+#include <stdlib.h>
+#include <string.h>
 
 #include "neuralNetwork.h"
 //using namespace std;
@@ -6,7 +8,7 @@
 #define M_PI       3.14159265358979323846
 #endif
 
-float norm(void)//add desired mean, multiply to get desired SD
+static float norm(void)//add desired mean, multiply to get desired SD
 {
 	static float kept = 0;
 	static bool in = 0;
@@ -413,4 +415,4 @@ void neuralNetwork::backpropigate(double* pattern, double OLR, double H2LR, doub
 	delete [] hiddenError1;
 	delete [] hiddenError2;
 	delete [] outputError;
-}
+}