_MSC_VER的意思就是:Microsoft的C/C++编译器版本预定义宏。
百度百科
http://baike.baidu.com/link?url=HVcAjShyVzzDpvQ1sHEASxZWv-K-WUZL6jfalsTTtKxPWunMubs5TiEegihA4L123iRQlzmLZwUqjK4E5qgwcpdKGTlip6CQejT2jykD5e3
_MSC_VER是微软公司推出的C/C++编译器在ANSI/ISO C99标准之外扩展的宏定义,用来定义当前微软公司自己的编译器的主版本。需要注意的是,这并不是Visual Studio 的版本号,也不是Visual C++的版本号。如Visual Studio 2005的Vistual C++版本为8.0,所附带编译器的_MSC_VER定义是1400;目前最新的Visual Studio 2015的Visual C++版本为14.0,相应_MSC_VER为1900。[1] 外文名_MSC_VER分 类定义编译器的版本用 途编辑器属 性软件https://msdn.microsoft.com/en-us/library/b0084kay.aspx
_MSC_VER Defined as an integer literal that encodes the major and minor number elements of the compiler's version number. The major number is the first element of the period-delimited version number and the minor number is the second element. For example, if the version number of the Visual C++ compiler is 17.00.51106.1, the_MSC_VER macro evaluates to 1700. Enter cl /? at the command line to view the compiler's version number. This macro is always defined.
新闻热点
疑难解答
图片精选