debug.cpp

来自「龙格库塔法求解二维反应扩散方程」· C++ 代码 · 共 16 行

CPP
16
字号
// file debug.cpp
#ifdef _DEBUG
#include <stdio.h>
#include <stdarg.h>
#include <windows.h>
void _trace(char *fmt, ...)
{ 
	char out[1024]; 
	va_list body; 
	va_start(body, fmt); 
	vsprintf(out, fmt, body); // 译注:格式化输入的字符串fmtt
	va_end(body);  //  到输出字符串 ou 
	OutputDebugString(out);    // 译注:输出格式化后的字符串到调试器
}
#endif 

⌨️ 快捷键说明

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