是什么wmain及主要的区别? [英] What is the difference between wmain and main?

查看:138
本文介绍了是什么wmain及主要的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一些类开始

#include <wchar.h>
#include <stdlib.h>

蚂蚁有该功能wmain。

ant there is that function wmain.

什么是它的主要功能不同的I usualy在我的C类使用?

What is it different from main function i usualy use in my C classes?

推荐答案

如果你的code坚持统一code编程模型,你可以使用的主要的宽字符版本,这是wmain。

"If your code adheres to the Unicode programming model, you can use the wide-character version of main, which is wmain."

<一个href=\"http://msdn.microsoft.com/en-us/library/aa299386%28VS.60%29.aspx\">http://msdn.microsoft.com/en-us/library/aa299386%28VS.60%29.aspx

main( int argc, char *argv[ ], char *envp[ ] )
{
program-statements
}

wmain( int argc, wchar_t *argv[ ], wchar_t *envp[ ] )
{
program-statements
}

这篇关于是什么wmain及主要的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆