Exemple #1
0
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();
	}
}
Exemple #2
0
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;
}