-
Date
用整数存储私有成员:年、月和日。为类提供构造函数,能够对各成员进行初始
化,但出现错误的初值时, 成员为2000-1-。也可以不在不提供任何初值的情况
下日期为2000-1-1。另外可以用一个Date 对象进行初始化,成员函数应实现以
下功能:
(1) 对所有成员一次性赋值,也能对某个成员单独赋值,能够一次返回所有成
员的值,也能单独返回某个成员的值
(2) 可以按照mm-dd-yyyy 格式输出日期。
(3) 有成员函数nextDay(),用于将日期增加一天(Integer stored the private Members: year, month, and day. Class provides a constructor to initialize the members, but the wrong initial value, members 2000-1-. The date can also be not the case does not provide any initial value 2000-1-1. Also available on a Date object is initialized, the member function should achieve the following functions: (1) all members of the one-time assignment, can also be a member of a separate assignment, to return once the value of all the members, but also separate return a The members of the value (2) according to the date of mm-dd-yyyy format output. (3) member function nextDay () for additional day date)
- 2012-11-22 11:18:18下载
- 积分:1
-
STM8
基于STM8设计的空气净化器,包含了市面上空气净化器的大部分功能(STM8 based design of air purifiers, air purifiers available in the market that contains most of the functionality)
- 2013-06-08 16:35:16下载
- 积分:1
-
FTCP动态库
FTCP动态库是使用C++语言编写的可以实现与DTU交互的工具包(The FTCP dynamic library is a toolkit that uses the C++ language to interact with DTU)
- 2018-02-09 08:58:01下载
- 积分:1
-
timer2
AVR单片机 定时器的应用 初始化 以及中断程序(AVR microcontroller timer application initialization and interrupt routine)
- 2013-08-12 10:59:38下载
- 积分:1
-
suming-up-numbers-of-leapyear
编写一段程序 统计从1000年到1999年之间闰年的个数 最后输出到屏幕上来(writing a program to sum up the numbers of leapyear between 1000 and 1999.Finally,showing the result on the screen.)
- 2015-01-02 21:47:35下载
- 积分:1
-
DS18B2
单片机 8051 C语言 温度传感器DS18B20(SCM 8051 C language temperature sensor DS18B20)
- 2013-11-11 13:23:45下载
- 积分:1
-
dmx232_250
灯光协议的DMX12 的源代码,单片机编写(mifare)
- 2010-10-28 17:26:52下载
- 积分:1
-
ADC
【AVR + Proteus】数码管显示两路AD转换结果([AVR+ Proteus] digital display two way AD conversion result)
- 2013-09-26 08:16:17下载
- 积分:1
-
FontGen2
点阵字体产生工具以及相关显示函数。
在开发嵌入式系统时,需要显示不同大小或类型字体的汉字。显然,对于嵌入式系统,不太可能使用矢量字体,而点阵字体,不同大小的字体不能简单的缩放。 另外,对一个小系统,也不需要完整的字体,往往只要几十个,甚至几个就够了。
一般,我们采用的方法是,自己准备点阵字体的数据,在显示汉字时,把这些数据写入显存就行了。 这时又存在另外一个问题,由于是不完整的字库,不能简单的用汉字的内码去找到对应的字体数据,如果逐个比较,又费时间。比较好的方法就是把字体数据排序,用二分法查找,这样可以大大提高查找效率。
这里为以上问题提供了一个完整的解决方案:
产生字体数据:指定字体类型、大小,自动产生字体数据。
字体数据排序:可以按Unicode,也可以按Ansi排序。
集成显示函数:提供相关显示函数。为了节省空间,我们把文字分成thin和wide两种,前者用于显示传统的ASCII字符集,后者用于显示汉字等多(双)字节字符
()
- 2020-06-30 09:20:02下载
- 积分:1
-
ir
说明: 器件参数:ATMega16/32,内部8.0000Mhz
实现功能:红外解码(IR Decoding source code source code integrity, and can be used directly.)
- 2011-07-08 10:35:01下载
- 积分:1