Vector::Vector(Array<double> arr) { if (arr.count() != 4) { throw VectorSourceSizeError(); } IArray<double> iarr(arr); while (iarr.check()) { this->v.addItem(iarr.value()); iarr.next(); } }
int main() { BoundCheckArray<int> iarr(10); for (int i = 0; i < iarr.GetArrayLen(); i++) { iarr[i] = (i + 1); } for (int i = 0; i < iarr.GetArrayLen(); i++) { cout << iarr[i] << endl; } //BoundCheckArray<Point<int>> ptrArr(3); getchar(); return 0; }