首页 | 本学科首页   官方微博 | 高级检索  
     检索      

利用通用排序函数实现日期排序
引用本文:段善荣.利用通用排序函数实现日期排序[J].咸宁学院学报,2002,22(3):82-84.
作者姓名:段善荣
作者单位:咸宁师范高等专科学校,计算机系,湖北,咸宁,437005
摘    要:通用排序函数是将各种类型数组的元素进行排序的函数.而日期型数据比较特殊,使用通用排序函数实现日期型数据排序,必须做一些特殊的处理.首先,把日期型数据转变成单个的数,然后把这些数存于数组,利用通用排序函数进行排序,最后将排序后的数组转变成日期输出.

关 键 词:通用排序函数  日期排序
文章编号:1006-5342(2002)03-0082-03

Apply General Sorting Function to Realize Date Sorting
DUAN Shan-rong.Apply General Sorting Function to Realize Date Sorting[J].Journal of Xianning College,2002,22(3):82-84.
Authors:DUAN Shan-rong
Abstract:General sorting function is a function to sort elements of different type array. Because data of date type is very particular, it is need to do some manipulations for applying general sorting function to realize date sorting. Firstly, to convert data of date type into single number. Secondly, to save the numbers to a array , to apply general sorting function to sort the array. Lastly , to convert elements of the array into data of date type and to output.
Keywords:sorting  general sorting function  date sorting  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号