vs输出调试信息demo

一,vs输出调试信息;使用:OutputDebugString()函数:
以下Demo使用如下:
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>


int main()
{

char chInput[512];
sprintf(chInput,"int:%d ",500);
OutputDebugString(chInput);
system("pause");
return 0;
}

不要勾选安全开发生命周期选项;

怕什么真理无穷,进一寸有一寸的欢喜。---胡适
原文地址:https://www.cnblogs.com/hujianglang/p/12403362.html