检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:罗丽云[1]
出 处:《计算机光盘软件与应用》2010年第16期98-98,104,共2页Computer CD Software and Application
摘 要:根据广州科技职业技术学院图书馆的要求,本文实现了定点播放音乐的功能。本文描述了在时钟控件中,通过c#中的DateTime类来获取电脑时间,使用if条件语句判断是否符合播放音乐的时间,再通过switch语句对不同星期的不同时段进行匹配,最后激发时钟控件实现定点播放音乐的功能。将此功能嵌入在图书查询系统中,是本文在应用上的一个创新点。According to the requirement of Guangzhou Institute of Science &Technology library, this article realized the function of playing music at fixed-point.This paper describes at the clock control component,through the datetime class in the C# language to get the computer time,use statement to judge whether the time is correspond to the playing music time.Then using switch statement to match different times in different day.Finally, stimulating the clock control component realized the function of playing music at fixed-point.This function is embedded in the library query system,and it is an innovation point in the application.
关 键 词:C# DateTime类 IF语句 SWITCH语句
分 类 号:TP311.13[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.87