-
定义类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
-
bus39.mdl
基于MATLAB中psat工具包的39节点系统(39 node system based on PSAT toolkit in MATLAB)
- 2017-12-05 14:52:58下载
- 积分:1
-
java面试宝典(高级篇)
java mainshi baoduan gaojipian
- 2020-06-20 01:20:02下载
- 积分:1
-
Cpp1
1: 由BSQ转为BIL.BIP 2 由BIL转换为BSQ,BIP 3: 由BIP转换为BSQ,BIL.(1: the BSQ to BIL.BIP 2 by the BIL into BSQ, BIP 3: converted by the BIP BSQ, BIL.)
- 2011-06-22 15:37:51下载
- 积分:1
-
vs Ping LAN messaging and procedures. Rar
vs Ping LAN消息和程序。雷亚尔
- 2023-07-06 01:40:04下载
- 积分:1
-
eclipse
eclipse快捷键使用方式,非常齐全,绝对的值(eclipse shortcut keys used, very well equipped, the absolute value of the)
- 2013-08-26 18:19:30下载
- 积分:1
-
Android_Bulk_SMS_SENDER
说明: SMS gateway for Android with Windows interface the packed ACTIVATOR in the ZIP file.
- 2020-06-25 01:00:01下载
- 积分:1
-
又一个留言薄系统,空间占用仅990K,可谓小巧,但功能还是挺多的,试用于新手建站用...
又一个留言薄系统,空间占用仅990K,可谓小巧,但功能还是挺多的,试用于新手建站用-also a thin voice mail system, the space occupied by only 990K, is small, but functional or sport the trial with the establishment of the station in the novice
- 2022-01-28 23:18:43下载
- 积分:1
-
Get_loop
用于求网络中从某一节点开始形成环路到该节点结束的节点编号。对于求路径的问题会有一定的帮助(Used to find a node the network began to form a loop to the end node node numbers. To seek the path of problem would certainly help)
- 2016-04-18 17:00:09下载
- 积分:1
-
Kline_Original
说明: VC++6.0 MFC for Stock KLine
- 2020-06-25 16:40:02下载
- 积分:1