echo_fixed.cpp

来自「在VC环境下的模拟运行,测试全通过,我很长时间才调试通过的」· C++ 代码 · 共 29 行

CPP
29
字号


#include "ipad_echo_fixed.h"


#ifdef WIN32
void debug_output(char *s)
{
	#ifdef _CONSOLE
		printf(s);
	#else 
		FILE *file;
		if (s==NULL) {
			return;
		}
		file = fopen("log.txt", "a");
		fwrite(s, 1, strlen(s), file);
		fclose(file);
	#endif
}

#endif






⌨️ 快捷键说明

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