//在 vs 中调试 c++ 程序时输出变量的值 //1.输出字符串 CString str = "abc"; OutputDebugString(str); OutputDebugString(" "); //2.输出整数 int i = 100; char c[10]; int len = sprintf(c, "%d", i); OutputDebugString(c);
//在 vs 中调试 c++ 程序时输出变量的值 //1.输出字符串 CString str = "abc"; OutputDebugString(str); OutputDebugString(" "); //2.输出整数 int i = 100; char c[10]; int len = sprintf(c, "%d", i); OutputDebugString(c);