調用函數OutputDebugString來向 vs的「輸出」窗口裏輸出調試內容函數
OutputDebugString只接受字符串指針,若是要輸出其餘格式,如int型,能夠用sprintf把字符轉成字符串,在傳給OutputDebugStringspa
char chInput[512] ;sprintf_s(chInput,"int:%d\n",i); // sprintf不帶s版本在vs2012中編譯不經過OutputDebugStringA( chInput );指針