-
定义类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
-
53327311
基于SYMBIAN手机操作系统,用C++实现的SIP会话发起协议引擎,(Based on SYMBIAN mobile operating system, the SIP session initiation protocol engine is implemented in C language.)
- 2019-04-02 03:12:20下载
- 积分:1
-
contdnt-language
C语言函数库大全电子书,内容丰富,全面,极具参考价值,,(C language function library e-book, rich in content, comprehensive, very valuable,)
- 2018-12-25 20:18:20下载
- 积分:1
-
EX15_Motor
关于DSP TMSF2812对电机的控制的源码( U5173 u4E8D)
- 2017-05-05 18:45:19下载
- 积分:1
-
仓库信息管理系统1.0v
说明: 这是基于B/S开发的一套仓库管理系统,基础功能完善,需要的自取。(This is a set of warehouse management system based on B/S. It has perfect basic functions and needs self-sufficiency.)
- 2020-06-25 04:40:02下载
- 积分:1
-
Game1
在SDK源码中增加了旋转模型功能,按下A和D键可看到模型旋转动作。(Game1 )
- 2013-04-11 18:32:39下载
- 积分:1
-
Form1
读取串口数据,实时显示变量的波形图,是一个winform窗体。(Real-time display waveform)
- 2020-06-18 23:40:02下载
- 积分:1
-
appenddemtrshar
一个可以处理算式符号的计算器程序,通过栈来实现,(A computer program that can process arithmetic symbols, through the stack to achieve,)
- 2018-12-30 10:02:49下载
- 积分:1
-
MC
说明: PHP MC
- 2010-01-26 00:12:07下载
- 积分:1
-
MODUSE
vc 动态连接库的例子(vc example of Dynamic Link Library)
- 2004-06-05 01:32:02下载
- 积分:1