利用C++标准符号,把调试信息输出到文件

来源:互联网 发布:感谢网络让我遇见你 编辑:程序博客网 时间:2024/05/22 01:30

#include <fstream.h>
……

private:
ofstream m_ofDebugInfo;

……

m_ofDebugInfo.open("d://DebugInfo.txt",ios::out,filebuf::openprot );

……

m_ofDebugInfo<< "Out put debug info ..."<<endl;

……

m_ofDebugInfo.close();