bptrain.cpp

来自「使用循环神经网络和动态神经网络算法实现的综合股票分析预测程序」· C++ 代码 · 共 50 行

CPP
50
字号
// BpTrain.cpp: implementation of the CBpTrain class.
//
//////////////////////////////////////////////////////////////////////

#include <stdafx.h>
#include "chenming.h"
#include "BpTrain.h"
#include <fstream>

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CBpTrain::CBpTrain(const CString &strSampleName)
{
	m_strSampleName = strSampleName;
}

CBpTrain::~CBpTrain()
{

}

//////////////////////////////////////////////////////////////////////////
// Implementation

void CBpTrain::OpenSample()
{
	std::fstream inFile;
	inFile.open(m_strSampleName, std::ios::in);
	char buf[_MAX_PATH];
	CString strBuf;
	while (!inFile.eof())
	{
		inFile.getline(buf, sizeof(buf), '\n');
		strBuf = buf;
		if ("" == strBuf)
		{
			break;
		}
		
	}
}

⌨️ 快捷键说明

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