期刊文献+

开课日期类的实现

Program Implementation of Class of the Date of Course Start
下载PDF
导出
摘要 存放在数据库中的周课表是没有日期的.用户使用课表或课程进度表时,需要指定一个起点日期,供计算机识别.如果将开课日期计算出来,直接呈现在用户面前,操作会极大地方便或简化.本文利用vfp的类,实现了开课日期类的制作.方法是将每年的9月1日及元宵节作为基点,取最近的星期一作为开课日期起点.算法有3个公式.程序主要由3个函数构成.其中有2个是日期函数,返回值是日期型,格式为American(月/日/年);另一个是星期一的日月函数,返回值是数值型.6年12个学期,计算的结果与实际开课日期对比,正确率达100%.解决了由人们告诉计算机何时开课,改为由计算机告诉我们何时开课. The week timetable saved in database is not date of course start.It need a starting point date for computer to distinguish when timetable and curricula schedule are used by user.If the date of the start point is cal-culated and displayed on user's interface,it will greatly simplify the operation.This article introduces the develop-ment of the date of course start by using Class of the Visual FoxPro.The start point is the nearest monday of the base point in September 1st and the Lantern Festival every year.There are three different kinds of formulae in algo-rithm.The main program consists of three functions.The date fuction in this program consists of two parts, and re-turned value is the date type in American style ( month/day/year) .Another function is of an about month and date to get monday, and returned value is in numerous type.The calculating results right rate was 100%compared with practical date of course start for 6 years or 12 semesters.It has exchanged methods when to begin the course that people told computer in the past, and now computer tells us.
出处 《湖南师范大学自然科学学报》 CAS 北大核心 2014年第5期65-69,共5页 Journal of Natural Science of Hunan Normal University
基金 湖北省荆门市研究与开发引导计划项目(2012YD50)
关键词 开课日期 教务 课表 控件 算法 date of course start teaching affairs curriculum schedule control algorithm
  • 相关文献

参考文献14

二级参考文献96

共引文献28

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部