www.pudn.com > 基于VC的神经网络开发程序包(源码).rar > trsetmerger.cpp
/* Given two Annie Training Sets, merges them together (IO pairs of one appended to the other). Requires that the training set files be in binary format. If not, then use txt2bin to convert them. */ #include#include #include using namespace std; using namespace annie; void printUsage(char *progname); void main(int argc, char *argv[]) { string in1,in2,outfile; cout<<"First training set (binary file) : "; cin>>in1; cout<<"Second training set (binary file) : "; cin>>in2; cout<<"Merged training set (binary file) : "; cin>>outfile; try { TrainingSet T1(in1.c_str(),annie::BINARY_FILE); cout<<"Read "<