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 >
Wrap
C/C++ Source or Header
|
1990-10-01
|
441b
|
21 lines
#include "neural.hpp"
#include <iostream.h>
#include <stdlib.h>
Pattern::getMem(int inSize, int outSize)
{
in = new float[inSize];
if(!in)
{
cerr<<"Error during memory allocation of Pattern.in[]!\n";
return(ALLOC_ERR);
}
out = new int[outSize];
if(!out)
{
cerr<<"Error during memory allocation of Pattern.out[]!\n";
return(ALLOC_ERR);
}
return true;
}