文件名称:ep2
-
所属分类:
- 标签属性:
- 上传时间:2016-06-01
-
文件大小:3.38kb
-
已下载:10次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
北京理工大学面向对象程序设计第二次上机习题答案-1. Here is the codes:
#include <iostream>
using namespace std
void main()
{
cout << Hello World!\n
}
Add some codes and get the results as follows:
Initialize
Hello, World!
Clear up
NOTES: Don t modify the MAIN function any way!
2.Define an integer set class which is named Set with some memeber functions as follows:
a. IsExist(): To judge if an integer is a member of a Set or not
b. DeleteItem(): To delete an integer the Set
c. IsEqual(): To judge if two Sets are equal or not
d. Intersection(): To intersection with another Set (交集)
e. Union: To union with another Set. (并集)
NOTES:In order to complement Set class, you can define constructor, member functions with available arguments as well as destrctor if you need.
3.Create a class, IntChar, to archieve an integer to save an string which length is no more than 4.
Suppose that a character length is 1 byte.
For example: ABCD , it s binary form as
#include <iostream>
using namespace std
void main()
{
cout << Hello World!\n
}
Add some codes and get the results as follows:
Initialize
Hello, World!
Clear up
NOTES: Don t modify the MAIN function any way!
2.Define an integer set class which is named Set with some memeber functions as follows:
a. IsExist(): To judge if an integer is a member of a Set or not
b. DeleteItem(): To delete an integer the Set
c. IsEqual(): To judge if two Sets are equal or not
d. Intersection(): To intersection with another Set (交集)
e. Union: To union with another Set. (并集)
NOTES:In order to complement Set class, you can define constructor, member functions with available arguments as well as destrctor if you need.
3.Create a class, IntChar, to archieve an integer to save an string which length is no more than 4.
Suppose that a character length is 1 byte.
For example: ABCD , it s binary form as
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1120141884-刘晶晶/exper2-1.cpp
1120141884-刘晶晶/exper2-2.cpp
1120141884-刘晶晶/exper2-3.cpp
1120141884-刘晶晶/exper2-4.cpp
1120141884-刘晶晶/exper2-2.cpp
1120141884-刘晶晶/exper2-3.cpp
1120141884-刘晶晶/exper2-4.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.