📄 bktest.cpp
字号:
#include <stdio.h>
#include <stdlib.h>
#include "bkneuro.h"
//void main()
main()
{
int i,key;
char filename[128];
float err;
cout<<"Input filename of testing data : ";
cin>>filename;
ifstream in1(filename);
ifstream in2("neurowgt.dat");
ofstream out("testrlt.dat");
if((!in1)||(!in2))
{
cout<<"Cannot open file! Any key to terminate...";
getchar();;exit(1);
}
BKNeuroNet nn;
nn.Initialize(in2);
nn.ApplyToTestingData(in1,out);
cout<<endl<<"The output file is testrlt.dat"<<endl;
cout<<"enter any key to terminate...";
getchar();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -