论文部分内容阅读
一、‘千年虫’产生的原委 被计算机界称为‘千年虫’的2000年问题是由计算机发展的历史原因造成的。最初的原因是存储器价格昂贵,存储空间及记忆空间都有限,为节约资源,当时的程序设计人员无不费尽心机,考虑如何经济有效地存储所需的资料。设想如果有一位程序设计人员将公元1975年不用两位数75表示,而是用4位数字1975存储到计算机中,可以肯定地说,由于他浪费宝贵的存储资源,老板一定会炒他的鱿鱼。 在这样资源昂贵又有限的条件下,包括硬件厂商及所有的程序设计人员都习惯日期用6位数表示(DD/MM/YY),甚至许多编程语言所提供的日
I. The origin of the “millennium bug” The 2000 issue that the computer industry called the “millennium bug” was caused by the historical reasons for the development of computers. The initial reason was that the memory was expensive, storage space and memory space were limited. In order to save resources, the programmers at the time all worked hard to consider how to store the required data in an efficient and cost-effective manner. Imagine that if a programmer would not use the double-digit 75 in 1975, but instead use a four-digit number 1975 to store on a computer, it is safe to say that because he wasted precious storage resources, the boss would surely scramble his fish. . Under such expensive and limited conditions, including hardware vendors and all programmers are accustomed to the date with a 6-digit number (DD/MM/YY), and even provided by many programming languages.