CSDN专家博客精华版

为人民服务!
  首页  :: 新随笔  :: 管理

vc80进行中文编程要出乱码

Posted on 2007-12-17 10:51  csdnexpert  阅读(84)  评论(0)    收藏  举报

这里提供如下一个例子程序

class 测试类
{
};
void 测试函数()
{
 cout << __FUNCSIG__ << endl;
 cout << typeid(测试类).name() << endl;
}

int _tmain(int argc, _TCHAR* argv[])
{
 测试函数();
 return 0;
}

输出如下 :

void __cdecl 娴嬭瘯鍑芥暟(void)
class 娴嬭瘯绫
请按任意键继续. . . 

 

这里的函数名, 类名的输出全成了乱码了.



Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1499934