Tuesday 7 March 2017

为什么没有Windows9?

众所周知,微软对Windows的命名规则一直很诡异,从XP,Vista,7到8和8.1 一直到最新的Windows 10。那么从技术角度考虑,为什么微软跳过了9而直接使用10呢?据微软内部开发人员流传,是为前操作系统的版本号考虑。

其实是因为代码:
if ( version.StartsWith("Windows 9") )
{ /*Windows 95, Windows 98 */
} else{
}
当软件开发人员使用:“ 如果 版本号开始于xxx,就 执行yyy" 时,会出现两种情况的正确判断
Windows 9。
Windows 9* ( Windows 95 Windows 98 )   95和98也是开头包含Windows 9的
综上所述,在早期测试时,微软发现很多第三方软件开发商使用了如上的方法去判断操作系统,这样会造成对当在Windows 95和 Windows 98上运行使用上述代码的程序时,程序会误判为WIndows "9"。
所以微软开发者为了避免出现这种不稳定因素,只好命名为Windows 10 。

No comments:

Post a Comment