-
定义类IntChar Exercise-1-IntChar
定义类IntChar,实现用一个整数保存一个长度不超过4的字符串。假设一个字符长度是1个字节。
* 例如:"ABCD",用一个整数保存,其二进制形式为:0100 0001 0100 0010 0100 0011 0100 0100
* 长度不足四个字符的串,剩下部分用0补足。
*
*
* 自己根据需要类IntChar的属性和方法,但需满足以下要求:
* 1. 在类IntChar中,不能用C++语言中的string类型来定义任何属性(变量)。
* 2. 对于定义的类IntChar,在main函数中,能用以下方式使用类IntChar:
*
* void main()
* {
* IntChar IC("Love")
* IC.ASC_Print() // 以字符串形式显示对象IC中保存的内容
* IC.Binary_Print() // 以二进制形式显示对象IC中保存的内容
* IC.Int_Print() // 以整数形式显示对象IC中保存的内容
* }(Custom class IntChar, save a length not exceeding 4 string with an integer. Suppose a character length is 1 byte.* For example: " ABCD" , kept by an integer, binary form: 0,100,000,101,000,010 0100 0011 0100 0100* length of less than four characters of the string, the rest of complement with 0. The*** the need class IntChar of the properties and methods, but must meet the following requirements:* 1. In class IntChar, can not use the string type the C++ language to define any attributes (variables).* 2. Defined class IntChar, the main function can be used following ways IntChar:** void main () {IntChar IC (" Love" ) * IC.ASC_Print () // in characters string displayed in the form saved in the object IC* IC.Binary_Print () // save the contents of the object IC* IC.Int_Print () in binary form // integer saved in the object IC*})
- 2013-05-11 22:10:57下载
- 积分:1
-
Population
c++ 链接access 建立的一个小型人员统计系统管理 代码简单(c++ link access to the set of a small staff Biejiao simple statistical system management code)
- 2014-03-09 10:11:57下载
- 积分:1
-
游戏被动技能设计(unity源码)
【实例简介】
游戏中被动技能设计
- 2021-08-07 00:31:06下载
- 积分:1
-
Ex06_POP28335_PWM_LED
PWM drives the led light.
- 2017-08-24 02:19:18下载
- 积分:1
-
用vs学习可视化的控件编程
关于可视化界面的常用控件都有代码,进度条,编辑控件,静态文本控件、图片控件、列表控件、组合控件等等,每个控件都有相应的代码注释,可以很快学习与掌握控件的使用
- 2022-01-30 15:57:53下载
- 积分:1
-
meera 专科
它是重要的学生园地
为使任何认可价值提供你等管理领域的入场,坦白从宽等。
- 2022-01-26 05:14:06下载
- 积分:1
-
TMS320LF2407-FFT
基于TMS320LF2407的FFT算法的实现及应用(TMS320LF2407 of the FFT algorithm based on Implementation and Application of)
- 2009-11-27 12:39:04下载
- 积分:1
-
3hso-112tarG
linux系统下3G模块USB串口驱动程序源代码最新版本,附pdf文档档。3G的USB modem都用得着,有了这个就可以在linux下使用了。
(3G module USB serial port driver in the linux system source code version of the attached pdf document file. 3G USB modem need it, with this you can use under linux.)
- 2012-07-24 10:15:27下载
- 积分:1
-
5672r
驱动,用于DA公司的驱动,此程序有5路输出,各路单独程序控制,调整DA输出(Driver for DA company driver, this program has 5 output, the various procedures alone control, adjust the DA output)
- 2020-07-31 12:38:40下载
- 积分:1
-
APF
三相四桥臂有源电力滤波器的控制与实验研究论文,三相四桥臂有源电力滤波器的控制与实验研究论文(APF san xiang si qiao bi yan jiu)
- 2016-04-24 19:47:58下载
- 积分:1