debugfile.cpp
来自「VC++视频开发实例集锦(包括“远程视频监控”"语音识别系统"」· C++ 代码 · 共 34 行
CPP
34 行
/**************************************************************************************
* *
* *
**************************************************************************************/
/*
* 一个'Debug'类
*
*/
#include "DebugFile.h"
DebugFile::DebugFile(char *filename)
{
this->debugFile = fopen(filename, "w");
}
DebugFile::~DebugFile()
{
fclose(this->debugFile);
}
void DebugFile::DebugInt(char *text, int d)
{
fprintf(this->debugFile, text, d);
fprintf(this->debugFile, "\n");
}
void DebugFile::DebugFloat(char *text, float d)
{
fprintf(this->debugFile, text, d);
fprintf(this->debugFile, "\n");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?