网学网为广大网友收集整理了,多时区时钟软件的设计与实现,希望对大家有所帮助!
包括论文,设计,论文字数:7619,页数:31
摘 要
进入21世纪以来,电脑用户数迅速增长,网上的跨国交流也越见频繁,由于时差的关系,不同国家的作息不同,因此需要经常进行时间的切换。
本系统主要论述如何利用VC++6.0应用程序开发环境和微软基础类库(MFC),设计与实现一个基于对话框的多时区时钟软件。该软件主要包括时钟显示,闹钟报时以及计时器功能。其中,时钟显示包含单时区时钟显示和多时区时钟显示,计时器可实现倒计时与正常计时。利用MFC中与定时器相关的函数,实现计时和时钟的定时刷新;运用模运算实现不同时区的时间转换;采用多线程技术使三个时钟同时运行。
关键词:VC++;MFC;时钟;多线程
The design and realization of Multi_ time_ zone Clock
Abstract
Since the 21stCentury, the number of computer users has increased quickly,the communication among different countries on Internet becomes more and more frequent. Because of the time difference, every country has its own timetable, you need to switch the time frequently.
This system has discussed how to design and realize a clock with Visual C++6.0 and Microsoft Foundation Class. This software principally contains these functions: the display of clocks, alarm clock and timer. The function of clock display contains the displays of single time zone clocks and multi time zone clocks. The timer can realize functions of countdown and clock. Take use of the functions related to the timer in Microsoft Foundation Class library to implement time and regular update of the clocks; the time conversion of different time zone could use modular arithmetic to realize; and taking advantage of multithreading could make three clocks run at the same time.
Key words: Visual C++; MFC; clock; multithreading
目 录
1 引 言 1
1.1课题背景及意义 1
1.2 课题的研究方法 1
2 程序功能描述 1
2.1 时钟显示 1
2.1.1 单时钟显示 1
2.1.2 多时钟显示 1
2.2闹钟功能 1
2.3计时器 2
2.3.1 倒计时 2
2.3.2 正常计时 2
2.4 开发环境 2
2.4.1 开发环境 2
2.4.2 Visual C++ 6.0简介 2
3 主要开发技术 3
3.1 MFC简介 3
3.2 MFC的线程 3
3.2.1多线程概述 3
3.2.2 MFC的线程 4
4 程序功能实现 5
4.1单时钟显示 5
4.2多时钟显示 10
4.3闹钟报时 13
4.4计时器 17
4.4.1倒计时 17
4.4.2正常计时 20
结 论 22
参考文献 23
附 录 24
致 谢 26
声 明 27
多时区时钟软件的设计与实现......