文件名称:MyArray
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 229kb
- 下载次数:
- 0次
- 提 供 者:
- we***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Define array class: MyArray. It s satisfied with demands as follows:
1. The class is used to save integer
2. The class can check array subscr ipting overflow
3. The client can use MyArray you define like as following codes in the main:
void main()
{
MyArray intArray(10) // Here 10 is the number of intArray s elements.
for (int i=0 i<10 i++)
intArray[i] = i * i // Initialize the intArray s elements
cout << intArray // Print every element in the intArray
}
4. Here is additional demand: think over how to save any data rather than integer.,-Define array class: MyArray. It s satisfied with demands as follows:
1. The class is used to save integer
2. The class can check array subscr ipting overflow
3. The client can use MyArray you define like as following codes in the main:
void main()
{
MyArray intArray(10) // Here 10 is the number of intArray s elements.
for (int i=0 i<10 i++)
intArray[i] = i* i // Initialize the intArray s elements
cout << intArray // Print every element in the intArray
}
4. Here is additional demand: think over how to save any data rather than integer.
1. The class is used to save integer
2. The class can check array subscr ipting overflow
3. The client can use MyArray you define like as following codes in the main:
void main()
{
MyArray intArray(10) // Here 10 is the number of intArray s elements.
for (int i=0 i<10 i++)
intArray[i] = i * i // Initialize the intArray s elements
cout << intArray // Print every element in the intArray
}
4. Here is additional demand: think over how to save any data rather than integer.,-Define array class: MyArray. It s satisfied with demands as follows:
1. The class is used to save integer
2. The class can check array subscr ipting overflow
3. The client can use MyArray you define like as following codes in the main:
void main()
{
MyArray intArray(10) // Here 10 is the number of intArray s elements.
for (int i=0 i<10 i++)
intArray[i] = i* i // Initialize the intArray s elements
cout << intArray // Print every element in the intArray
}
4. Here is additional demand: think over how to save any data rather than integer.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MyArray\Debug\MyArray.exe
.......\.....\MyArray.ilk
.......\.....\MyArray.obj
.......\.....\MyArray.obj.enc
.......\.....\MyArray.pch
.......\.....\MyArray.pdb
.......\.....\vc60.idb
.......\.....\vc60.pdb
.......\MyArray.cpp
.......\MyArray.dsp
.......\MyArray.dsw
.......\MyArray.ncb
.......\MyArray.opt
.......\MyArray.plg
.......\Debug
MyArray
.......\.....\MyArray.ilk
.......\.....\MyArray.obj
.......\.....\MyArray.obj.enc
.......\.....\MyArray.pch
.......\.....\MyArray.pdb
.......\.....\vc60.idb
.......\.....\vc60.pdb
.......\MyArray.cpp
.......\MyArray.dsp
.......\MyArray.dsw
.......\MyArray.ncb
.......\MyArray.opt
.......\MyArray.plg
.......\Debug
MyArray