setlocale(LC_ALL, "chs"); //打印中文须先设置本地语言为中文 LPCTSTR strValue = _T("变量的值"); _tprintf(_T("要打印的变量值:%s"),strValue);