Beispiel #1
0
int main()
{
	vector<int> k;
	for(int j = 0; j < 10; ++j)
	{
		k.push_back(j);
	}
	VectorContainer test (k);
	test.print();
	cout << test.at(3) << endl;
	cout << "should be 3" << endl;
	test.swap(0,1);
	test.print();
	test.size();
	test.insert(15);
	test.print();
	
	cout << "break" << endl;
	list <int> l;
	for(int j = 0; j < 10; ++j)
	{
		l.push_back(j);
	}
	ListContainer testlst (l);
	testlst.print();
	cout << testlst.at(3) << endl;
	cout << "should be 3" << endl;
	testlst.swap(0,1);
	testlst.print();
	testlst.size();
	testlst.insert(15);
	testlst.print();
	return 0;
}