-
定义类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
-
1w
说明: 这是一个用C++编写的简单的图书管理,程序设计较为简单,对于初学者是个不错的例子。
(This is a C++ Prepared a simple library management, program design relatively simple, for beginners is a good example.)
- 2009-01-02 22:43:21下载
- 积分:1
-
基于HOMER仿真的太阳能混合发电系统设计
太阳能混合发电的背景、目的和意义以及混合发电系统在国内外的研究与应用现状,
构建了混合发电系统,设计了系统的结构图,并运用HOMER软件进行仿真分析。针对该混合发电系统经济效益问题,结合HOMER软件仿真与调试的结果,综合分析了该发电系统的预计运行成本和经济效益,确定出最终的设计结果和结论。(Design of solar hybrid power system based on HOMER simulation)
- 2018-09-21 13:56:37下载
- 积分:1
-
DvrXCallDemo
DVR xCall wrapper class demo source codes
- 2016-05-22 10:46:20下载
- 积分:1
-
usbTest2
说明: 没啥可说的,为了下载而上传,关键说明还不能低于20个字(nothing is necessary)
- 2020-06-20 03:40:01下载
- 积分:1
-
chat
c++学习编写软件,能实现同机或通过网络两机间进行通讯( chat )
- 2009-06-04 19:52:28下载
- 积分:1
-
Synsnoop-master
Syn-flood attack in linux
- 2015-06-17 19:12:01下载
- 积分:1
-
UniqueInstance
VC6.0实现的,只能有一个程序实例运行的例子程序。两套实现方案。一个使用互斥对象,一个使用找到窗口句柄(VC6.0 achieved, there can be only one instance to run the example program. Two implementations. Use of a mutex object, a window handle to use to find)
- 2013-12-07 11:08:13下载
- 积分:1
-
exp1
模仿XP的资源管理器,基本功能都实现了,个人感觉很强大了。(Mimic XP' s Explorer, the basic functions are realized, a very strong personal feeling.)
- 2009-04-26 23:24:35下载
- 积分:1
-
078654
使用多媒体定时器,VC++精选编程学习源码,很好的参考资料。(Using multimedia timer, VC++ select learning programming source code, a good reference.)
- 2013-11-28 10:56:37下载
- 积分:1