⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 common.cpp

📁 在linux系统下
💻 CPP
字号:
//// C++ Implementation: common//// Description: ////// Author: robocup <cgb@1-6>, (C) 2007//// Copyright: See COPYING file that comes with this distribution////#include "common.h"#include <stdarg.h>FileInfo Log;FileInfo::FileInfo():fp(NULL){	if(!open())	{		exit(1);	}}FileInfo::~ FileInfo(){	close();}bool FileInfo::open(){	close();	fp = fopen("result.dat","wr");	return fp?true:false;}void FileInfo::close(){	if(fp!=NULL)	{		fclose(fp);	}}void FileInfo::DoLog( const char* format,...){	va_list va;	va_start(va,format);	vfprintf(fp,format,va);	//vfprintf(fp,"\n");	va_end(va);	::fflush(fp);}

⌨️ 快捷键说明

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