最近在vs上用c写了个程序
printf("%c", (pNode->elem).item);
其中(pNode->elem).item是char类型的,但是打印的时候却是乱码,这是怎么回事?(比如设置(pNode->elem).item = ‘a’,显示的是乱码?)
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.
直接打印一个字符试试看:
printf("a"); --这样会变成乱码吗?
另外,麻烦将定义pNode->elem的相关代码发上来。谢谢。
Damon Zheng MSDN Community Support | Feedback to us Develop and promote your apps in Windows Store Please remember to mark the replies as answers if they help and unmark them if they provide no help.
你好,
我先将这个帖子的类型改为“常规讨论”,因为目前你给出的信息不足,我们无法为你找到一个解决方案。
如果你有时间把相关的代码发上来,你可以随时将帖子的类型改回“问题”。
谢谢你的理解和配合。