clogfile.cpp

来自「Xvid Quants parser(XvidQP)用来分析编码Xvid AVI」· C++ 代码 · 共 46 行

CPP
46
字号
// CLogFile.cpp: implementation of the CLogFile class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "XvidQuantsParser.h"
#include "CLogFile.h"

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

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

CLogFile::CLogFile()
{

}

CLogFile::~CLogFile()
{

}

//------------------------------------------------------------------------------
void CLogFile::Open(char* filepath)
{
	fptr = fopen(filepath, "wt");
}

//------------------------------------------------------------------------------
void CLogFile::Print(char* msg)
{
	fprintf(fptr, "%s", msg);
}

//------------------------------------------------------------------------------
void CLogFile::Close(void)
{
	fclose(fptr);
}

⌨️ 快捷键说明

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