C++ 之独立编译打印输出
来源:互联网 发布:网络做饭卖用啥软件 编辑:程序博客网 时间:2024/06/11 23:39
#include "stdafx.h"
#include <windows.h>
#include <cstring>
#include <stdarg.h>
void DbgPrintf_Mine(char *pszFormat, ...){
#ifdef _DEBUG
char szbufFormat[0x1000];
char szBufFormat_Game[0x1008] = "QGLog";
va_list argList;
va_start(argList, pszFormat);
vsprintf(szbufFormat, pszFormat, argList);
strcat(szBufFormat_Game, szbufFormat);
OutputDebugStringA(szBufFormat_Game);
va_end(argList);
#endif
}
int main(int argc, char* argv[])
{
printf("Hello World!\n");
DbgPrintf_Mine("%d,%d,%d", 1, 3, 5);
return 0;
}
#include <windows.h>
#include <cstring>
#include <stdarg.h>
void DbgPrintf_Mine(char *pszFormat, ...){
#ifdef _DEBUG
char szbufFormat[0x1000];
char szBufFormat_Game[0x1008] = "QGLog";
va_list argList;
va_start(argList, pszFormat);
vsprintf(szbufFormat, pszFormat, argList);
strcat(szBufFormat_Game, szbufFormat);
OutputDebugStringA(szBufFormat_Game);
va_end(argList);
#endif
}
int main(int argc, char* argv[])
{
printf("Hello World!\n");
DbgPrintf_Mine("%d,%d,%d", 1, 3, 5);
return 0;
}
阅读全文
0 0
- C++ 之独立编译打印输出
- C语言 基础之printf打印输出
- c语言之打印输出图形
- 【C/C++】sizeof之打印输出数组元素
- 【IOS开发】objective-c之简单类型和打印输出
- C语言--输出打印表格
- Latex之文件拆分及独立编译
- 自学Swift之打印输出
- Linux shell之打印输出
- 在VC编译期间打印输出
- Makefile 编译时如何输出打印信息
- C/C++如何打印输出二进制串
- 如何在init.c 输出打印信息
- C语言:打印输出矩阵生成器练习
- c/c++ 2进制打印输出
- C语言输出打印乘法口诀表
- C语言实现颜色打印输出
- C语言输出打印一个菱形
- Wireshark之认识分析数据包
- 关于Java多线程------(1,认识多线程)
- h5 canvas 鼠标绘画
- Flask 局域网内访问
- webpack踩坑记
- C++ 之独立编译打印输出
- POJ3237 Tree
- 父进程等待子进程的异步版本
- 自定义casrealm
- RabbitMQ的几种方式的实现总结
- Licecap for Mac使用教程
- 杀不死service------Java层实现
- BZOJ1036 [ZJOI2008]树的统计Count
- linux系统中查找文件命令