What is the difference between wmain and main?

前端 未结 3 1130
南方客
南方客 2020-12-03 10:13

So I have some class starting with

#include 
#include 

and there is a wmain function .

3条回答
  •  温柔的废话
    2020-12-03 10:40

    main is the normal program entry point in c & c++ and is passed the command line in single byte characters. wmain is an alternative that is used in many windows programs for unicode programs where it instead gets passed the command line as wide 16 bit unicode characters.

    I believe it's a windows extension for unicode programs.

提交回复
热议问题