home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / OTHERUTI / MASTER-2.ZIP / NEURAL / NEURAL.LZH / PATTERN.CPP < prev    next >
C/C++ Source or Header  |  1990-10-01  |  441b  |  21 lines

  1. #include "neural.hpp"
  2. #include <iostream.h>
  3. #include <stdlib.h>
  4.  
  5. Pattern::getMem(int inSize, int outSize)
  6. {
  7.     in = new float[inSize];
  8.     if(!in)
  9.     {
  10.         cerr<<"Error during memory allocation of Pattern.in[]!\n";
  11.         return(ALLOC_ERR);
  12.     }
  13.     out = new int[outSize];
  14.     if(!out)
  15.     {
  16.         cerr<<"Error during memory allocation of Pattern.out[]!\n";
  17.         return(ALLOC_ERR);
  18.     }
  19.     return true;
  20. }
  21.