⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pattern.cpp

📁 人工智能算法包含各种情况可在Delphi和C++中使用
💻 CPP
字号:
#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;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -