Description: 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 subscripting 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.
To Search:
File list (Check if you may need any files):
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